nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6buildGoModule rec {
7
8 pname = "gotemplate";
9 version = "3.12.0";
10
11 src = fetchFromGitHub {
12 owner = "coveooss";
13 repo = "gotemplate";
14 tag = "v${version}";
15 hash = "sha256-XcSlQ0Gw+EW2sJK+M2Sp9pcSSy2wsdRZ3MeFewhx7nw=";
16 };
17
18 vendorHash = "sha256-iNH0YmmZ/Qlc7WDoIbORd+uVg0rbQVKL6hX7YvbL0BE=";
19
20 # This is the value reported when running `gotemplate --version`,
21 # see https://github.com/coveooss/gotemplate/issues/262
22 ldflags = [ "-X main.version=${version}" ];
23
24 meta = {
25 description = "CLI for go text/template";
26 mainProgram = "gotemplate";
27 changelog = "https://github.com/coveooss/gotemplate/releases/tag/v${version}";
28 license = lib.licenses.mit;
29 maintainers = [ lib.maintainers.giorgiga ];
30 };
31
32}