depot/third_party/nixpkgs/pkgs/development/tools/gomplate/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

35 lines
806 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "gomplate";
version = "3.9.0";
owner = "hairyhenderson";
rev = "v${version}";
src = fetchFromGitHub {
inherit owner rev;
repo = pname;
sha256 = "sha256-liy8cqn+hWoTOHchCY1LLu23tNvz7eGA+AN0d0APjC4=";
};
vendorSha256 = "sha256-Ph9z/Tom7O7V7yZ/On+etty+Bl653HiY/J3d3yfweeQ=";
# some tests require network access
postPatch = ''
rm net/net_test.go
'';
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X github.com/${owner}/${pname}/v3/version.Version=${rev}"
];
meta = with lib; {
description = "A flexible commandline tool for template rendering";
homepage = "https://gomplate.ca/";
maintainers = with maintainers; [ ris jlesquembre ];
license = licenses.mit;
};
}