at 23.05-pre 44 lines 1.2 kB view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "gomplate"; 5 version = "3.11.3"; 6 owner = "hairyhenderson"; 7 rev = "v${version}"; 8 9 src = fetchFromGitHub { 10 inherit owner rev; 11 repo = pname; 12 sha256 = "sha256-NvTwiGyBHhHiVHdWeXnJONNkHkrvsc1zmHPK8rSHaQw="; 13 }; 14 15 vendorSha256 = "sha256-BIcOErtlcnE70Mo6fjmA/btvSpw95RaKLqNWsgyJgpc="; 16 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 ''; 26 27 # TestInputDir_RespectsUlimit 28 preCheck = '' 29 ulimit -n 1024 30 ''; 31 32 ldflags = [ 33 "-s" 34 "-w" 35 "-X github.com/${owner}/${pname}/v3/version.Version=${rev}" 36 ]; 37 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 }; 44}