python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / gomplate / default.nix
blobada936ed540b14b8ba08e1a4642d1c9c05c43243
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "gomplate";
5   version = "3.11.3";
6   owner = "hairyhenderson";
7   rev = "v${version}";
9   src = fetchFromGitHub {
10     inherit owner rev;
11     repo = pname;
12     sha256 = "sha256-NvTwiGyBHhHiVHdWeXnJONNkHkrvsc1zmHPK8rSHaQw=";
13   };
15   vendorSha256 = "sha256-BIcOErtlcnE70Mo6fjmA/btvSpw95RaKLqNWsgyJgpc=";
17   postPatch = ''
18     # some tests require network access
19     rm net/net_test.go \
20       internal/tests/integration/datasources_blob_test.go \
21       internal/tests/integration/datasources_git_test.go
22     # some tests rely on external tools we'd rather not depend on
23     rm internal/tests/integration/datasources_consul_test.go \
24       internal/tests/integration/datasources_vault*_test.go
25   '';
27   # TestInputDir_RespectsUlimit
28   preCheck = ''
29     ulimit -n 1024
30   '';
32   ldflags = [
33     "-s"
34     "-w"
35     "-X github.com/${owner}/${pname}/v3/version.Version=${rev}"
36   ];
38   meta = with lib; {
39     description = "A flexible commandline tool for template rendering";
40     homepage = "https://gomplate.ca/";
41     maintainers = with maintainers; [ ris jlesquembre ];
42     license = licenses.mit;
43   };