nixpkgs/pkgs/tools/misc/changelogger/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

45 lines
1.2 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "changelogger";
version = "0.6.1";
src = fetchFromGitHub {
owner = "MarkusFreitag";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XDiO8r1HpdsfBKzFLnsWdxte2EqL1blPH21137fNm5M=";
};
vendorHash = "sha256-E6J+0tZriskBnXdhQOQA240c3z+laXM5honoREjHPfM=";
ldflags = [
"-s"
"-w"
"-X github.com/MarkusFreitag/changelogger/cmd.BuildVersion=${version}"
"-X github.com/MarkusFreitag/changelogger/cmd.BuildDate=1970-01-01T00:00:00"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd changelogger \
--bash <($out/bin/changelogger completion bash) \
--fish <($out/bin/changelogger completion fish) \
--zsh <($out/bin/changelogger completion zsh)
'';
meta = with lib; {
description = "Tool to manage your changelog file in Markdown";
homepage = "https://github.com/MarkusFreitag/changelogger";
changelog = "https://github.com/MarkusFreitag/changelogger/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ tomsiewert ];
mainProgram = "changelogger";
};
}