Merge pull request #214831 from figsoda/changie

changie: 1.11.0 -> 1.11.1
This commit is contained in:
Nick Cao 2023-02-06 08:27:28 +08:00 committed by GitHub
commit 66a5eb880e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,24 +1,39 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "changie";
version = "1.11.0";
version = "1.11.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "miniscruff";
repo = pname;
sha256 = "sha256-hnRK9pj5NruSRvo2oetyRMVwhO7T/wSEZjcbYHb7ZUY=";
sha256 = "sha256-IZiGNmVEOJf7sqJHXCXxptfy79mSnyyyiqf+oS41MgI=";
};
vendorSha256 = "sha256-0/3Ou8z6yLWhc81hdN2gkaFLLlKQWUGcIdvRHVLTrjQ=";
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";
description = "Automated changelog tool for preparing releases with lots of customization options";
license = licenses.mit;
maintainers = with maintainers; [ figsoda matthiasbeyer ];
};