diff --git a/packages/default.nix b/packages/default.nix index 1528364121..c5062c115b 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -78,6 +78,12 @@ rec { inherit (nunki) cli; cli-release = (nunki.override (prevArgs: { + 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 = prevArgs.ldflags ++ [ "-X main.DefaultCoordinatorPolicyHash=${builtins.readFile ../cli/assets/coordinator-policy-hash}" ];