acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / go / gotemplate / package.nix
blobaecef203ec894ce266f48afcffdfdfd5188be0f3
2   lib,
3   buildGo123Module,
4   fetchFromGitHub,
5 }:
6 buildGo123Module rec {
8   pname = "gotemplate";
9   version = "3.10.1";
11   src = fetchFromGitHub {
12     owner = "coveooss";
13     repo = "gotemplate";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-Q/Bqb0wgKzR0WPUHge/hqIvib/TbGxv6s+eEpDLxqPY=";
16   };
18   vendorHash = "sha256-buRCG9I5zltIMTu5SLE98/pQAs3Vlfw4oz2BZXQxUAc=";
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}" ];
24   meta = with lib; {
25     description = "CLI for go text/template";
26     mainProgram = "gotemplate";
27     changelog = "https://github.com/coveooss/gotemplate/releases/tag/v${version}";
28     license = licenses.mit;
29     maintainers = with maintainers; [ giorgiga ];
30   };