diff --git a/packages/by-name/cli-release/package.nix b/packages/by-name/cli-release/package.nix index 439b6df4c1..63ec196625 100644 --- a/packages/by-name/cli-release/package.nix +++ b/packages/by-name/cli-release/package.nix @@ -1,6 +1,16 @@ -{ nunki }: +{ lib +, nunki +, genpolicy-msft +, genpolicy ? genpolicy-msft +}: (nunki.overrideAttrs (_finalAttrs: previousAttrs: { + prePatch = '' + install -D ${lib.getExe genpolicy} cli/assets/genpolicy + install -D ${genpolicy.settings}/genpolicy-settings.json cli/assets/genpolicy-settings.json + install -D ${genpolicy.rules}/genpolicy-rules.rego cli/assets/genpolicy-rules.rego + ''; + ldflags = previousAttrs.ldflags ++ [ "-X main.DefaultCoordinatorPolicyHash=${builtins.readFile ../../../cli/assets/coordinator-policy-hash}" ];