mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
3ed8e8db18
Diff: https://github.com/miniscruff/changie/compare/v1.15.0...v1.15.1 Changelog: https://github.com/miniscruff/changie/blob/v1.15.1/CHANGELOG.md
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "changie";
|
|
version = "1.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miniscruff";
|
|
repo = "changie";
|
|
rev = "v${version}";
|
|
hash = "sha256-pjeqaLCxWq2maz+C4jCNNRhYhclvcABi6zC+Qxy2GPw=";
|
|
};
|
|
|
|
vendorHash = "sha256-pBRU/eWuI14uDmTPo593hW0YAye5Y1Fm1axd/+X7nS8=";
|
|
|
|
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";
|
|
homepage = "https://changie.dev";
|
|
changelog = "https://github.com/miniscruff/changie/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
|
};
|
|
}
|