biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / gomplate / default.nix
blob9be7b5a87fc7dc83fd0947404887aa83701301c5
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "gomplate";
8   version = "3.11.7";
10   src = fetchFromGitHub {
11     owner = "hairyhenderson";
12     repo = pname;
13     rev = "refs/tags/v${version}";
14     hash = "sha256-0cYQ44SF8fQ5Ml0tRUbqTFZ+zDVTV6elox1q6tNsG7Q=";
15   };
17   vendorHash = "sha256-8siITXKIqDbph/74aBEvkbLVqHE30VyRompFL6z92zA=";
19   postPatch = ''
20     # some tests require network access
21     rm net/net_test.go \
22       internal/tests/integration/datasources_blob_test.go \
23       internal/tests/integration/datasources_git_test.go
24     # some tests rely on external tools we'd rather not depend on
25     rm internal/tests/integration/datasources_consul_test.go \
26       internal/tests/integration/datasources_vault*_test.go
27   '';
29   # TestInputDir_RespectsUlimit
30   preCheck = ''
31     ulimit -n 1024
32   '';
34   ldflags = [
35     "-s"
36     "-w"
37     "-X github.com/${src.owner}/${pname}/v3/version.Version=${version}"
38   ];
40   meta = with lib; {
41     description = "A flexible commandline tool for template rendering";
42     mainProgram = "gomplate";
43     homepage = "https://gomplate.ca/";
44     changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ ris jlesquembre ];
47   };