27
27
( builtins . attrNames latestVerMap ) ) ;
28
28
traceWarnOld = v : x :
29
29
let
30
- bootstrapGhc = final . buildPackages . haskell-nix . bootstrap . compiler . ghc8107 ;
30
+ bootstrapGhc = final . buildPackages . haskell . compiler . ghc8107 ;
31
31
in
32
32
if builtins . compareVersions x . version bootstrapGhc . version < 0 then
33
33
throw "Desired GHC (${ x . version } ) is older than the bootstrap GHC (${ bootstrapGhc . version } ) for this platform (${ final . stdenv . targetPlatform . config } )."
@@ -1094,17 +1094,7 @@ in {
1094
1094
# hence we'll use 844 for bootstrapping for now.
1095
1095
1096
1096
# the bootstrap infrastructure (pre-compiled ghc; bootstrapped cabal-install, ...)
1097
- bootstrap =
1098
- let
1099
- # This compiler-nix-name will only be used to build nix-tools and cabal-install
1100
- # when checking materialization of alex, happy and hscolour.
1101
- compiler-nix-name = buildBootstrapper . compilerNixName ;
1102
- # The ghc boot compiler to use to compile alex, happy and hscolour
1103
- ghcOverride = final . buildPackages . haskell-nix . bootstrap . compiler . ${ compiler-nix-name } ;
1104
- index-state = final . haskell-nix . internalHackageIndexState ;
1105
- in {
1106
- compiler = final . haskell . compiler ;
1107
- packages = {
1097
+ bootstrap . packages = {
1108
1098
# now that we have nix-tools and hpack, we can just
1109
1099
# use `hackage-package` to build any package from
1110
1100
# hackage with haskell.nix. For alex and happy we
@@ -1113,26 +1103,25 @@ in {
1113
1103
alex = final . haskell-nix . tool "ghc8107" "alex" ( { config , pkgs , ...} : {
1114
1104
compilerSelection = p : p . haskell . compiler ;
1115
1105
version = "3.2.4" ;
1116
- inherit ghcOverride index-state ;
1117
- materialized = ../materialized/bootstrap + "/ ${ buildBootstrapper . compilerNixName } /alex" ;
1106
+ index-state = final . haskell-nix . internalHackageIndexState ;
1107
+ materialized = ../materialized/bootstrap/ghc8107 /alex ;
1118
1108
} ) ;
1119
1109
happy = final . haskell-nix . tool "ghc8107" "happy"
1120
1110
( { config , pkgs , ...} : {
1121
1111
compilerSelection = p : p . haskell . compiler ;
1122
1112
version = "1.19.12" ;
1123
- inherit ghcOverride index-state ;
1124
- materialized = ../materialized/bootstrap + "/ ${ buildBootstrapper . compilerNixName } /happy-1.19.12" ;
1113
+ index-state = final . haskell-nix . internalHackageIndexState ;
1114
+ materialized = ../materialized/bootstrap/ghc8107 /happy-1.19.12 ;
1125
1115
} ) ;
1126
1116
hscolour = ( final . haskell-nix . hackage-package
1127
1117
( { config , pkgs , ...} : {
1128
1118
compilerSelection = p : p . haskell . compiler ;
1129
1119
compiler-nix-name = buildBootstrapper . compilerNixName ;
1130
1120
name = "hscolour" ;
1131
1121
version = "1.24.4" ;
1132
- inherit ghcOverride index-state ;
1122
+ index-state = final . haskell-nix . internalHackageIndexState ;
1133
1123
materialized = ../materialized/bootstrap + "/${ buildBootstrapper . compilerNixName } /hscolour" ;
1134
1124
} ) ) . getComponent "exe:HsColour" ;
1135
- } ;
1136
1125
} ;
1137
1126
} ;
1138
1127
}
0 commit comments