{ lib , buildGoModule , fetchFromGitHub }: buildGoModule rec { pname = "gomplate"; version = "4.1.0"; src = fetchFromGitHub { owner = "hairyhenderson"; repo = "gomplate"; rev = "refs/tags/v${version}"; hash = "sha256-shbG0q86wlSjoCK2K7hNdUCwNPiQp94GWQJ1e71A1T0="; }; vendorHash = "sha256-UKqSKypAm6gt2JUCZh/DyfWo8uJeMp0M+4FiqwzzHIA="; ldflags = [ "-s" "-X github.com/${src.owner}/${pname}/v4/version.Version=${version}" ]; preCheck = '' # some tests require network access rm net/net_test.go \ internal/tests/integration/datasources_blob_test.go \ internal/tests/integration/datasources_git_test.go \ render_test.go # some tests rely on external tools we'd rather not depend on rm internal/tests/integration/datasources_consul_test.go \ internal/tests/integration/datasources_vault*_test.go ''; postInstall = '' rm $out/bin/gen ''; meta = with lib; { description = "Flexible commandline tool for template rendering"; mainProgram = "gomplate"; homepage = "https://gomplate.ca/"; changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ ris jlesquembre ]; }; }