Skip to content

Commit

Permalink
Fix evalPackages for flakes that are cross compiling (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Sep 10, 2021
1 parent 20e9f66 commit e2f77a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overlays/eval-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ haskellNixOverlay: final: prev: {
# derivations that use `evalPackages` (these should be eval time only derviations
# used to build nix inputs for IFD, the generated nix should match and so derivations
# that depend on the IFD should match).
evalPackages = (import final.path {
evalPackages = import final.path {
# If we are building a flake there will be no currentSystem attribute
system = builtins.currentSystem or final.system;
system = builtins.currentSystem or final.buildPackages.system;
overlays = [ haskellNixOverlay ];
}).buildPackages;
};
}

0 comments on commit e2f77a9

Please sign in to comment.