2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
2024-02-29 20:09:43 +00:00
|
|
|
, SystemConfiguration
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-cliff";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.2.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "git-cliff";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-FRcreSnSO65m9h9+SUg4qdFELvpVX1+HkWH3dI2RR/M=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-RlcZvyFi7fc8eJYB5X64axAnNp8Z1h0WOV4hM1SLoRk=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
# attempts to run the program on .git in src which is not deterministic
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2024-02-29 20:09:43 +00:00
|
|
|
Security SystemConfiguration
|
2022-12-28 21:21:41 +00:00
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A highly customizable Changelog Generator that follows Conventional Commit specifications";
|
|
|
|
homepage = "https://github.com/orhun/git-cliff";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/orhun/git-cliff/blob/v${version}/CHANGELOG.md";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|