2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "changelogger";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.6.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MarkusFreitag";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-XDiO8r1HpdsfBKzFLnsWdxte2EqL1blPH21137fNm5M=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorHash = "sha256-E6J+0tZriskBnXdhQOQA240c3z+laXM5honoREjHPfM=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to manage your changelog file in Markdown";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/MarkusFreitag/changelogger";
|
|
|
|
changelog = "https://github.com/MarkusFreitag/changelogger/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tomsiewert ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "changelogger";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|