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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
901 B
Nix
Raw Normal View History

2022-12-27 09:15:47 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
2021-09-05 19:39:01 +00:00
rustPlatform.buildRustPackage rec {
pname = "git-cliff";
2023-04-29 23:18:36 +00:00
version = "1.2.0";
2021-09-05 19:39:01 +00:00
src = fetchFromGitHub {
owner = "orhun";
repo = "git-cliff";
rev = "v${version}";
2023-04-29 23:18:36 +00:00
hash = "sha256-EmpWJWvYxyg6m08Q77kRehtcVSQOm16ZdcmZWncLch4=";
2021-09-05 19:39:01 +00:00
};
2023-04-29 23:18:36 +00:00
cargoHash = "sha256-ECTvfS09CglAavj8LJbfpxnaWQtsp4DZb7GMJHIeEAA=";
2021-09-05 19:39:01 +00:00
# attempts to run the program on .git in src which is not deterministic
doCheck = false;
2022-12-27 09:15:47 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
Security
];
2021-09-05 19:39:01 +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-27 09:15:47 +00:00
changelog = "https://github.com/orhun/git-cliff/blob/v${version}/CHANGELOG.md";
2021-09-05 19:39:01 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ siraben ];
};
}