@@ -838,18 +838,13 @@ final: prev: {
838
838
shellFor' = crossPlatforms :
839
839
let
840
840
shellArgs = builtins . removeAttrs rawProject . args . shell [ "crossPlatforms" ] ;
841
- # These are the args we will pass to the shells for the corss compiler
842
- argsCross =
843
- # These things should match main shell
844
- final . lib . filterAttrs ( n : _ : builtins . elem n [
845
- "packages" "components" "additional" "exactDeps" "packageSetupDeps"
846
- ] ) shellArgs // {
847
- # The main shell's hoogle will probably be faster to build.
848
- withHoogle = false ;
849
- } ;
850
841
# Shells for cross compilation
851
- crossShells = builtins . map ( project : project . shellFor' ( _p : [ ] ) argsCross )
852
- ( crossPlatforms projectCross ) ;
842
+ crossShells = builtins . map ( project : project . shellFor {
843
+ # Prevent recursion
844
+ crossPlatforms = final . lib . mkForce ( _p : [ ] ) ;
845
+ # The main shell's hoogle will probably be faster to build.
846
+ withHoogle = final . lib . mkForce false ;
847
+ } ) ( crossPlatforms projectCross ) ;
853
848
in rawProject . hsPkgs . shellFor ( shellArgs // {
854
849
# Add inputs from the cross compilation shells
855
850
inputsFrom = shellArgs . inputsFrom or [ ] ++ crossShells ;
@@ -1158,7 +1153,7 @@ final: prev: {
1158
1153
let
1159
1154
ghc = final . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
1160
1155
in
1161
- final . recurseIntoAttrs ( {
1156
+ final . recurseIntoAttrs ( {
1162
1157
# Things that require no IFD to build
1163
1158
source-pin-hackage = hackageSrc ;
1164
1159
source-pin-stackage = stackageSrc ;
0 commit comments