1 { lib, buildGo123Module, fetchFromGitHub }:
7 src = fetchFromGitHub {
10 rev = "refs/tags/v${version}";
11 hash = "sha256-7FJejArGpnmkAzbN+2BOcewLdlcsh8QblOOZjFu+uSA=";
14 vendorHash = "sha256-378oodyQG50l7qkTO5Ryt1NjFBbYW2n9by+ALNfTggI=";
16 # This is the value reported when running `gotemplate --version`,
17 # see https://github.com/coveooss/gotemplate/issues/262
18 ldflags = [ "-X main.version=${version}" ];
21 description = "CLI for go text/template";
22 mainProgram = "gotemplate";
23 changelog = "https://github.com/coveooss/gotemplate/releases/tag/v${version}";
24 license = licenses.mit;
25 maintainers = with maintainers; [ giorgiga ];