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