Skip to content

Commit 5660f1d

Browse files
Merge #4661
4661: fix pure nix evaluation r=dermetfan a=dermetfan There was access to `builtin.currentSystem` in the nix evaluation for nix-shell so pure evaluation was not possible. Needed by cardano-scaling/hydra#625. Co-authored-by: Robin Stumm <[email protected]>
2 parents 15556f3 + 56a7c0b commit 5660f1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ in
1313
inherit profileName workbenchDevMode;
1414
};
1515
}
16+
, system ? builtins.currentSystem
1617
}:
1718
with (import ./nix/flake-compat.nix customConfig);
18-
defaultNix // defaultNix.packages.${builtins.currentSystem} // {
19-
private.project = defaultNix.legacyPackages.${builtins.currentSystem};
19+
defaultNix // defaultNix.packages.${system} // {
20+
private.project = defaultNix.legacyPackages.${system};
2021
}

0 commit comments

Comments
 (0)