at 23.11-beta 54 lines 1.5 kB view raw
1# Gomplate 3.x does not build with go > 1.20. 2# Version 4 of gomplate (yet unreleased) should not have this issue. 3# 4# see https://github.com/hairyhenderson/gomplate/issues/1872 5 6{ lib 7#, buildGoModule 8, buildGo120Module 9, fetchFromGitHub 10}: 11 12# buildGoModule rec { 13buildGo120Module rec { 14 pname = "gomplate"; 15 version = "3.11.5"; 16 17 src = fetchFromGitHub { 18 owner = "hairyhenderson"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-cBSOfjU7A6B7+5zQLGtGLx9kORsjH/IzGgkjwjjTcYY="; 22 }; 23 24 vendorHash = "sha256-thsa15CDD7+gCSPSU4xDbovETREeuL4gV6TjdcImj9w="; 25 26 postPatch = '' 27 # some tests require network access 28 rm net/net_test.go \ 29 internal/tests/integration/datasources_blob_test.go \ 30 internal/tests/integration/datasources_git_test.go 31 # some tests rely on external tools we'd rather not depend on 32 rm internal/tests/integration/datasources_consul_test.go \ 33 internal/tests/integration/datasources_vault*_test.go 34 ''; 35 36 # TestInputDir_RespectsUlimit 37 preCheck = '' 38 ulimit -n 1024 39 ''; 40 41 ldflags = [ 42 "-s" 43 "-w" 44 "-X github.com/${src.owner}/${pname}/v3/version.Version=${version}" 45 ]; 46 47 meta = with lib; { 48 description = "A flexible commandline tool for template rendering"; 49 homepage = "https://gomplate.ca/"; 50 changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${version}"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ ris jlesquembre ]; 53 }; 54}