File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
122
122
# TODO: can we merge this into the general case by picking an appropriate "cross system" to mean native?
123
123
native = pkgs . recurseIntoAttrs ( {
124
124
roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel ;
125
- ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } ;
125
+ ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
126
126
} // pkgs . lib . optionalAttrs runTests {
127
127
inherit ( build ) tests tools maintainer-scripts maintainer-script-cache ;
128
128
} // pkgs . lib . optionalAttrs ( ifdLevel >= 3 ) rec {
@@ -143,7 +143,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
143
143
build = import ./build.nix { inherit pkgs evalPackages ifdLevel compiler-nix-name haskellNix ; } ;
144
144
in pkgs . recurseIntoAttrs ( pkgs . lib . optionalAttrs ( ifdLevel >= 1 ) ( {
145
145
roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel ;
146
- ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } ;
146
+ ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
147
147
# TODO: look into cross compiling ghc itself
148
148
# ghc = pkgs.haskell-nix.compiler.${compiler-nix-name};
149
149
# TODO: look into making tools work when cross compiling
Original file line number Diff line number Diff line change 101
101
inherit ( stdenv ) buildPlatform hostPlatform targetPlatform ;
102
102
inherit ( haskell-nix . haskellLib ) isCrossTarget ;
103
103
104
- inherit ( bootPkgs ) ghc ;
104
+ ghc = if bootPkgs . ghc . isHaskellNixCompiler or false
105
+ then bootPkgs . ghc . override { inherit hadrianEvalPackages ; }
106
+ else bootPkgs . ghc ;
105
107
106
108
ghcHasNativeBignum = builtins . compareVersions ghc-version "9.0" >= 0 ;
107
109
hadrianHasNativeBignumFlavour = builtins . compareVersions ghc-version "9.6" >= 0 ;
You can’t perform that action at this time.
0 commit comments