nixpkgs/pkgs/applications/version-management/git-cliff/default.nix

36 lines
901 B
Nix
Raw Normal View History

2022-12-27 10:15:47 +01:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
2021-09-05 21:39:01 +02:00
rustPlatform.buildRustPackage rec {
pname = "git-cliff";
2023-01-24 00:57:48 +01:00
version = "1.1.2";
2021-09-05 21:39:01 +02:00
src = fetchFromGitHub {
owner = "orhun";
repo = "git-cliff";
rev = "v${version}";
2023-01-24 00:57:48 +01:00
hash = "sha256-QYldwxQYod5qkNC3soiKoCLDFR4UaLxdGkVufn1JIeE=";
2021-09-05 21:39:01 +02:00
};
2023-01-24 00:57:48 +01:00
cargoHash = "sha256-jwDJb9Hl0PegCufmaj1Q3h5itgt26E4dwmcyCxZ+4FM=";
2021-09-05 21:39:01 +02:00
# attempts to run the program on .git in src which is not deterministic
doCheck = false;
2022-12-27 10:15:47 +01:00
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
2021-09-05 21:39:01 +02:00
meta = with lib; {
description = "A highly customizable Changelog Generator that follows Conventional Commit specifications";
homepage = "https://github.com/orhun/git-cliff";
2022-12-27 10:15:47 +01:00
changelog = "https://github.com/orhun/git-cliff/blob/v${version}/CHANGELOG.md";
2021-09-05 21:39:01 +02:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ siraben ];
};
}