nixpkgs/pkgs/development/tools/convco/default.nix

36 lines
765 B
Nix
Raw Normal View History

2022-02-01 08:03:47 +00:00
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, cmake
, libiconv
, openssl
, pkg-config
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "convco";
2022-02-01 08:03:47 +00:00
version = "0.3.8";
src = fetchFromGitHub {
owner = "convco";
repo = pname;
rev = "v${version}";
2022-02-01 08:03:47 +00:00
sha256 = "sha256-sNVl+bbCj3vPYz4wKOaAHeaPCCubG4XvXZ+AZijhFJE=";
};
2022-02-01 08:03:47 +00:00
cargoSha256 = "sha256-FHiX9XpNjBFfs9fwi3Wzq7bAwRi7e/sqtji5WWPA5Qo=";
2022-02-01 08:03:47 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2022-02-01 08:03:47 +00:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
meta = with lib; {
description = "A Conventional commit cli";
homepage = "https://github.com/convco/convco";
license = with licenses; [ mit ];
maintainers = with maintainers; [ hoverbear ];
};
}