2023-02-05 22:40:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2022-08-26 20:38:39 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "changie";
|
2023-11-17 04:19:00 +00:00
|
|
|
version = "1.16.0";
|
2022-08-26 20:38:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miniscruff";
|
2023-08-20 01:11:16 +01:00
|
|
|
repo = "changie";
|
|
|
|
rev = "v${version}";
|
2023-11-17 04:19:00 +00:00
|
|
|
hash = "sha256-lFe59ITcPJ69x0COV+WlX500Hl96XqWLCz5gJMqX6qQ=";
|
2022-08-26 20:38:39 +01:00
|
|
|
};
|
|
|
|
|
2023-11-17 04:19:00 +00:00
|
|
|
vendorHash = "sha256-JmK7bcS8UYCOUvJGs0PAYPNc8iwvCSFzjLlkBEVUa40=";
|
2022-09-21 16:51:21 +01:00
|
|
|
|
2023-02-05 22:40:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
2022-09-21 14:48:25 +01:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
|
2023-02-05 22:40:05 +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-08-26 20:38:39 +01:00
|
|
|
meta = with lib; {
|
2023-02-05 22:40:05 +00:00
|
|
|
description = "Automated changelog tool for preparing releases with lots of customization options";
|
2022-08-26 20:38:39 +01:00
|
|
|
homepage = "https://changie.dev";
|
2022-09-21 14:48:25 +01:00
|
|
|
changelog = "https://github.com/miniscruff/changie/blob/v${version}/CHANGELOG.md";
|
2022-08-26 20:38:39 +01:00
|
|
|
license = licenses.mit;
|
2022-09-21 14:48:25 +01:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
2022-08-26 20:38:39 +01:00
|
|
|
};
|
|
|
|
}
|