@@ -121,8 +121,9 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
121121 # Native builds
122122 # TODO: can we merge this into the general case by picking an appropriate "cross system" to mean native?
123123 native = pkgs . recurseIntoAttrs ( {
124- roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel ;
125- ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
124+ roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel // {
125+ ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
126+ } ;
126127 } // pkgs . lib . optionalAttrs runTests {
127128 inherit ( build ) tests tools maintainer-scripts maintainer-script-cache ;
128129 } // pkgs . lib . optionalAttrs ( ifdLevel >= 3 ) rec {
@@ -142,8 +143,9 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
142143 let pkgs = import pinnedNixpkgsSrc ( nixpkgsArgs // { inherit system crossSystem ; } ) ;
143144 build = import ./build.nix { inherit pkgs evalPackages ifdLevel compiler-nix-name haskellNix ; } ;
144145 in pkgs . recurseIntoAttrs ( pkgs . lib . optionalAttrs ( ifdLevel >= 1 ) ( {
145- roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel ;
146- ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
146+ roots = pkgs . haskell-nix . roots' compiler-nix-name ifdLevel // {
147+ ghc = pkgs . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
148+ } ;
147149 # TODO: look into cross compiling ghc itself
148150 # ghc = pkgs.haskell-nix.compiler.${compiler-nix-name};
149151 # TODO: look into making tools work when cross compiling
0 commit comments