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-05-15 15:35:15 +00:00
|
|
|
version = "2.2.2";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orhun";
|
|
|
|
repo = "git-cliff";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-e7DeGcavBgjnH2QY/nqRThYHKzhmbNxYPoOmMF+0I3s=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-MaSqQD3SRuqiOj5hTHAMyTDj2xgboA5QIZEH7BAxjF4=";
|
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 ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "git-cliff";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|