Skip to content

Commit 97aacf0

Browse files
committed
squash! flake: decouple client-side tools from x86_64-linux
Override contrastPkgsStatic on darwin: use linux static packages from runtimePkgs but keep genpolicy as a native darwin build since the CLI embeds and runs it on the host. The full darwin contrastPkgsStatic fails to evaluate because genpolicy's C deps (aws-lc-sys) don't build with darwin's static toolchain.
1 parent 3a4c7c3 commit 97aacf0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

overlays/runtimepkgs.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ else
99
{
1010
contrastPkgs = prev.contrastPkgs.overrideScope (
1111
_cFinal: cPrev: {
12+
13+
contrastPkgsStatic = final.runtimePkgs.contrastPkgsStatic.overrideScope (
14+
_: _: {
15+
kata = final.runtimePkgs.contrastPkgsStatic.kata.overrideScope (
16+
_: _: { inherit (cPrev.kata) genpolicy; }
17+
);
18+
}
19+
);
20+
1221
kata = cPrev.kata.overrideScope (
1322
_: _: {
1423
inherit (final.runtimePkgs.kata)

0 commit comments

Comments
 (0)