constellation/nix/packages/by-name/buildConstellationGoModule/package.nix
Moritz Sanft e5d22ebcaf
nix: boostrap "v2" tree (#3740)
Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2025-04-04 10:22:28 +02:00

26 lines
596 B
Nix

# A 'wrapped' Go builder for Constellation, which doesn't require a `vendorHash` to be set in each package.
# Instead, one central vendor hash is set here, and all packages inherit it.
{
buildGo124Module,
constellation-canonical-go-package,
}:
args:
(buildGo124Module (
{
# We run tests in CI, so don't run them at build time.
doCheck = false;
# Disable CGO by default.
env.CGO_ENABLED = "0";
}
// args
)).overrideAttrs
(_oldAttrs: {
inherit (constellation-canonical-go-package)
goModules
vendorHash
proxyVendor
deleteVendor
;
})