mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
36 lines
795 B
Nix
36 lines
795 B
Nix
{ stdenv
|
|
, lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libiconv
|
|
, openssl
|
|
, pkg-config
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "convco";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "convco";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-x01fkicoAH8NaJJqIF5jjbZ53TitnXBCdKEbr8xVCyE=";
|
|
};
|
|
|
|
cargoHash = "sha256-j2xuaAkycWp5sCAmVJLYfqH1ZGxIGU/a/97WpGyQcvU=";
|
|
|
|
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 ];
|
|
};
|
|
}
|