1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 pname = "git-chglog";
9 version = "0.15.4";
10
11 src = fetchFromGitHub {
12 owner = "git-chglog";
13 repo = "git-chglog";
14 rev = "v${version}";
15 sha256 = "sha256-rTJn2vUrEnmG2japqCxHv3BR9MpmMfpMLO2FBP6ONbw=";
16 };
17
18 vendorHash = "sha256-skhEHpSnxOTZrL8XLlQZL3s224mg8XRINKJnatYCQko=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=main.Version=v${version}"
24 ];
25
26 subPackages = [ "cmd/git-chglog" ];
27
28 meta = with lib; {
29 description = "CHANGELOG generator implemented in Go (Golang)";
30 homepage = "https://github.com/git-chglog/git-chglog";
31 license = licenses.mit;
32 maintainers = with maintainers; [ ldenefle ];
33 mainProgram = "git-chglog";
34 };
35}