nixpkgs/pkgs/applications/version-management/git-and-tools/git-chglog/default.nix

27 lines
688 B
Nix
Raw Normal View History

2021-04-24 09:16:07 +02:00
{ lib, fetchFromGitHub, buildGoModule }:
2020-10-20 16:26:35 +02:00
2021-04-24 09:16:07 +02:00
buildGoModule rec {
2020-10-20 16:26:35 +02:00
pname = "git-chglog";
2021-07-09 21:57:04 +02:00
version = "0.15.0";
2020-10-20 16:26:35 +02:00
src = fetchFromGitHub {
owner = "git-chglog";
repo = "git-chglog";
2021-04-24 09:16:07 +02:00
rev = "v${version}";
2021-07-09 21:57:04 +02:00
sha256 = "sha256-BiTnPCgymfpPxuy0i8u7JbpbEBeaSIJaikjwsPSA3qc=";
2020-10-20 16:26:35 +02:00
};
2021-07-09 21:57:04 +02:00
vendorSha256 = "sha256-jIq+oacyT71m78iMZwWOBsBVAY/WxgyH9zRr8GiMGTU=";
2021-04-24 09:16:07 +02:00
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X=main.Version=v${version}" ];
2021-04-24 09:16:07 +02:00
subPackages = [ "cmd/git-chglog" ];
2020-10-20 16:26:35 +02:00
meta = with lib; {
description = "CHANGELOG generator implemented in Go (Golang)";
2021-04-24 09:16:07 +02:00
homepage = "https://github.com/git-chglog/git-chglog";
2020-10-20 16:26:35 +02:00
license = licenses.mit;
maintainers = with maintainers; [ ldenefle ];
};
}