Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.4 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "gomplate"; 9 version = "4.3.3"; 10 11 src = fetchFromGitHub { 12 owner = "hairyhenderson"; 13 repo = "gomplate"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-LhCOpXptsZLoVXYH2u+YIXPlqNTMQ3tQt+KY8c54oA0="; 16 }; 17 18 vendorHash = "sha256-lesPZAnN7K6hWYqAB69pGo4fVQAQH0VTh4DBtl2yhg8="; 19 20 ldflags = [ 21 "-s" 22 "-X github.com/${finalAttrs.src.owner}/${finalAttrs.pname}/v4/version.Version=${finalAttrs.version}" 23 ]; 24 25 preCheck = '' 26 # some tests require network access 27 rm net/net_test.go \ 28 internal/tests/integration/datasources_blob_test.go \ 29 internal/tests/integration/datasources_git_test.go \ 30 internal/tests/integration/test_ec2_utils_test.go \ 31 render_test.go 32 # some tests rely on external tools we'd rather not depend on 33 rm internal/tests/integration/datasources_consul_test.go \ 34 internal/tests/integration/datasources_vault*_test.go 35 ''; 36 37 postInstall = '' 38 rm $out/bin/gen 39 ''; 40 41 meta = { 42 description = "Flexible commandline tool for template rendering"; 43 mainProgram = "gomplate"; 44 homepage = "https://gomplate.ca/"; 45 changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${finalAttrs.version}"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ 48 ris 49 jlesquembre 50 ]; 51 }; 52})