nixpkgs/pkgs/by-name/co/convco/package.nix
Christina Sørensen 7e3a13be53
convco: 0.6.0 -> 0.6.1
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-10-25 07:06:26 +02:00

42 lines
958 B
Nix

{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, cmake
, libiconv
, openssl
, pkg-config
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "convco";
version = "0.6.1";
src = fetchFromGitHub {
owner = "convco";
repo = pname;
rev = "v${version}";
hash = "sha256-s0rcSekJLe99oxi6JD8VL1S6nqQTUFTn5pdgxnknbaY=";
};
cargoHash = "sha256-oQBCPfwlMJ0hLZskv+KUNVBHH550yAUI1jY40Eah3Bc=";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
checkFlags = [
# disable test requiring networking
"--skip=git::tests::test_find_last_unordered_prerelease"
];
meta = with lib; {
description = "Conventional commit cli";
mainProgram = "convco";
homepage = "https://github.com/convco/convco";
license = with licenses; [ mit ];
maintainers = with maintainers; [ hoverbear cafkafk ];
};
}