Files
nixpkgs/pkgs/by-name/go/gomplate/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.4 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "gomplate";
version = "4.3.3";
src = fetchFromGitHub {
owner = "hairyhenderson";
repo = "gomplate";
tag = "v${finalAttrs.version}";
hash = "sha256-LhCOpXptsZLoVXYH2u+YIXPlqNTMQ3tQt+KY8c54oA0=";
};
vendorHash = "sha256-lesPZAnN7K6hWYqAB69pGo4fVQAQH0VTh4DBtl2yhg8=";
ldflags = [
"-s"
"-X github.com/${finalAttrs.src.owner}/${finalAttrs.pname}/v4/version.Version=${finalAttrs.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 \
internal/tests/integration/test_ec2_utils_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 = {
description = "Flexible commandline tool for template rendering";
mainProgram = "gomplate";
homepage = "https://gomplate.ca/";
changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
ris
jlesquembre
];
};
})