on iko/ghcjs-patch-master help sign in
Fix evalPackages for flakes that are cross compiling (#1234)
commite2f77a9873982e6c633fb9de2817a6c800e42c2b authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateFri 10 Sep 2021, 16:40 (5 years ago) parent20e9f66
1 file changed+3−3
overlays/eval-packages.nix+3−3
overlays/eval-packages.nix+3−3
@@ -6,9 +6,9 @@ haskellNixOverlay: final: prev: {
66 # derivations that use `evalPackages` (these should be eval time only derviations
77 # used to build nix inputs for IFD, the generated nix should match and so derivations
88 # that depend on the IFD should match).
9− evalPackages = (import final.path {
9+ evalPackages = import final.path {
1010 # If we are building a flake there will be no currentSystem attribute
11− system = builtins.currentSystem or final.system;
11+ system = builtins.currentSystem or final.buildPackages.system;
1212 overlays = [ haskellNixOverlay ];
13− }).buildPackages;
13+ };
1414}