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-02 11:29:13 +00:00
|
|
|
version = "1.17.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-02 11:29:13 +00:00
|
|
|
hash = "sha256-IS4KKvAi4VutJADSpst56ZdeqoqVkSMQ1TyQR12pqNg=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-JmK7bcS8UYCOUvJGs0PAYPNc8iwvCSFzjLlkBEVUa40=";
|
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
|
|
|
};
|
|
|
|
}
|