b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "changelogger";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MarkusFreitag";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AP5cuXAuh5LX6FTsku38Zh1Y4SVaa4l5XEBTMZnYr6g=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-RmLSuLZdYpA557xN7fkPZm5ektxvRHil1E2u1qR7EO0=";
|
|
|
|
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 = "A 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 ];
|
|
};
|
|
}
|