2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "changie";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.18.0";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miniscruff";
|
2023-08-22 20:05:09 +00:00
|
|
|
repo = "changie";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-pZe9T/WALFX5xwCiZKbf8fpaG3wmBJbqgM7FTPqlN2k=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
vendorHash = "sha256-SdaDu9LXgelSEXdOCAbtvt1LnrSVpAIoN6MDSjTeEOs=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd changie \
|
|
|
|
--bash <($out/bin/changie completion bash) \
|
|
|
|
--fish <($out/bin/changie completion fish) \
|
|
|
|
--zsh <($out/bin/changie completion zsh)
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
meta = with lib; {
|
2023-02-09 11:40:11 +00:00
|
|
|
description = "Automated changelog tool for preparing releases with lots of customization options";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://changie.dev";
|
2022-09-30 11:47:45 +00:00
|
|
|
changelog = "https://github.com/miniscruff/changie/blob/v${version}/CHANGELOG.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.mit;
|
2022-09-30 11:47:45 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|