@@ -1082,12 +1082,12 @@ final: prev: {
1082
1082
# are tested and cached. Consider using `p.roots` where `p` is a
1083
1083
# project as it will automatically match the `compiler-nix-name`
1084
1084
# of the project.
1085
- roots = { compiler-nix-name , evalPackages ? final . pkgsBuildBuild } : final . linkFarm "haskell-nix-roots-${ compiler-nix-name } "
1085
+ roots = { compiler-nix-name , evalPackages ? final . pkgsBuildBuild } @ args : final . linkFarm "haskell-nix-roots-${ compiler-nix-name } "
1086
1086
( final . lib . filter ( x : x . name != "recurseForDerivations" )
1087
1087
( final . lib . mapAttrsToList ( name : path : { inherit name path ; } )
1088
- ( roots' compiler-nix-name 2 ) ) ) ;
1088
+ ( roots' args 2 ) ) ) ;
1089
1089
1090
- roots' = { compiler-nix-name , evalPackages ? final . pkgsBuildBuild } : ifdLevel : evalPackages :
1090
+ roots' = { compiler-nix-name , evalPackages ? final . pkgsBuildBuild } : ifdLevel :
1091
1091
let
1092
1092
ghc = final . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ;
1093
1093
in
@@ -1099,7 +1099,7 @@ final: prev: {
1099
1099
inherit ( evalPackages ) nix gitMinimal nix-prefetch-git ;
1100
1100
} // final . lib . optionalAttrs ( final . stdenv . hostPlatform . libc == "glibc" ) {
1101
1101
inherit ( final ) glibcLocales ;
1102
- } // pkgs . lib . optionalAttrs ( builtins . compareVersions ghc . version "9.4" >= 0 ) {
1102
+ } // final . lib . optionalAttrs ( builtins . compareVersions ghc . version "9.4" >= 0 ) {
1103
1103
# Make sure the plan for hadrian is cached (we need it to instanciate ghc).
1104
1104
hadrian-plan = final . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . hadrianProject . plan-nix ;
1105
1105
# Also include the same plan evaluated on the eval system.
0 commit comments