5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "changie";
|
|
version = "1.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miniscruff";
|
|
repo = "changie";
|
|
rev = "v${version}";
|
|
hash = "sha256-3GQ9C9UteJG3LfJmDsBbFJ9hnz7ouQ/6bZkQ/8CZ8PI=";
|
|
};
|
|
|
|
vendorHash = "sha256-2SkHId5BDAv525PISLjlrP862Z2fJDN4L839rz8rWaw=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd changie \
|
|
--bash <($out/bin/changie completion bash) \
|
|
--fish <($out/bin/changie completion fish) \
|
|
--zsh <($out/bin/changie completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Automated changelog tool for preparing releases with lots of customization options";
|
|
mainProgram = "changie";
|
|
homepage = "https://changie.dev";
|
|
changelog = "https://github.com/miniscruff/changie/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
|
};
|
|
}
|