mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 23:40:44 -04:00
26 lines
596 B
Nix
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
|
|
;
|
|
})
|