nixpkgs/pkgs/by-name/co/convco/package.nix
Christina Sørensen 9dc7d7106a
convco: add cafkafk as maintainer
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-04 05:16:19 +02:00

36 lines
795 B
Nix

{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, cmake
, libiconv
, openssl
, pkg-config
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "convco";
version = "0.4.3";
src = fetchFromGitHub {
owner = "convco";
repo = pname;
rev = "v${version}";
hash = "sha256-qf04mtxBqZy9kpFsqz8lVtyUzNtCYE8cNiVJVQ+sCn0=";
};
cargoHash = "sha256-A1z8ccdsaBC9gY4rD/0NnuQHm7x4eVlMPBvkMKGHK54=";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
meta = with lib; {
description = "A Conventional commit cli";
homepage = "https://github.com/convco/convco";
license = with licenses; [ mit ];
maintainers = with maintainers; [ hoverbear cafkafk ];
};
}