mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gomplate";
|
|
version = "3.11.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hairyhenderson";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3WTscK2nmjd7+cUKGaAi9i+C3HFpuxb7eRCn0fOHFV4=";
|
|
};
|
|
|
|
vendorHash = "sha256-X3o00WATVlWoc1Axug5ErPtLDQ+BL3CtO/QyNtavIpg=";
|
|
|
|
postPatch = ''
|
|
# some tests require network access
|
|
rm net/net_test.go \
|
|
internal/tests/integration/datasources_blob_test.go \
|
|
internal/tests/integration/datasources_git_test.go
|
|
# some tests rely on external tools we'd rather not depend on
|
|
rm internal/tests/integration/datasources_consul_test.go \
|
|
internal/tests/integration/datasources_vault*_test.go
|
|
'';
|
|
|
|
# TestInputDir_RespectsUlimit
|
|
preCheck = ''
|
|
ulimit -n 1024
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/${src.owner}/${pname}/v3/version.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A flexible commandline tool for template rendering";
|
|
homepage = "https://gomplate.ca/";
|
|
changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ris jlesquembre ];
|
|
};
|
|
}
|