8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 hash = "sha256-B421xXt7TrBJVwi04vygnw9t5o7/KLVpuItQtwV4E24=";
19 cargoHash = "sha256-geg6gdPKUBJBJI/TpW5m+/q/7M7kmIlrU2UAauctFOM=";
21 # attempts to run the program on .git in src which is not deterministic
24 nativeBuildInputs = [ installShellFiles ];
26 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
27 export OUT_DIR=$(mktemp -d)
29 # Generate shell completions
30 $out/bin/git-cliff-completions
31 installShellCompletion \
32 --bash $OUT_DIR/git-cliff.bash \
33 --fish $OUT_DIR/git-cliff.fish \
34 --zsh $OUT_DIR/_git-cliff
37 $out/bin/git-cliff-mangen
38 installManPage $OUT_DIR/git-cliff.1
42 description = "Highly customizable Changelog Generator that follows Conventional Commit specifications";
43 homepage = "https://github.com/orhun/git-cliff";
44 changelog = "https://github.com/orhun/git-cliff/blob/v${version}/CHANGELOG.md";
45 license = licenses.gpl3Only;
46 maintainers = with maintainers; [
50 mainProgram = "git-cliff";