nixpkgs/pkgs/by-name/go/gotemplate/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
816 B
Nix
Raw Normal View History

2024-11-15 18:36:15 +00:00
{
lib,
buildGo123Module,
fetchFromGitHub,
}:
2024-10-03 08:23:47 +00:00
buildGo123Module rec {
2024-11-15 18:36:15 +00:00
pname = "gotemplate";
2024-11-27 10:53:17 +00:00
version = "3.11.0";
src = fetchFromGitHub {
owner = "coveooss";
2024-11-15 18:36:15 +00:00
repo = "gotemplate";
rev = "refs/tags/v${version}";
2024-11-27 10:53:17 +00:00
hash = "sha256-ohF9NemIXTTzguQ2VfqFt9zeiE4Co+dVux9Kw5cDobs=";
};
2024-11-27 10:53:17 +00:00
vendorHash = "sha256-iNH0YmmZ/Qlc7WDoIbORd+uVg0rbQVKL6hX7YvbL0BE=";
2024-10-11 11:49:33 +00:00
# This is the value reported when running `gotemplate --version`,
# see https://github.com/coveooss/gotemplate/issues/262
ldflags = [ "-X main.version=${version}" ];
meta = with lib; {
description = "CLI for go text/template";
mainProgram = "gotemplate";
changelog = "https://github.com/coveooss/gotemplate/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ giorgiga ];
};
2024-11-15 18:36:15 +00:00
}