Skip to content

Commit 277b592

Browse files
committed
Fix for GHC 8.10.7
1 parent 57db6ef commit 277b592

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

overlays/bootstrap.nix

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let
2727
(builtins.attrNames latestVerMap));
2828
traceWarnOld = v: x:
2929
let
30-
bootstrapGhc = final.buildPackages.haskell-nix.bootstrap.compiler.ghc8107;
30+
bootstrapGhc = final.buildPackages.haskell.compiler.ghc8107;
3131
in
3232
if builtins.compareVersions x.version bootstrapGhc.version < 0 then
3333
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 {
10941094
# hence we'll use 844 for bootstrapping for now.
10951095

10961096
# 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 = {
11081098
# now that we have nix-tools and hpack, we can just
11091099
# use `hackage-package` to build any package from
11101100
# hackage with haskell.nix. For alex and happy we
@@ -1113,26 +1103,25 @@ in {
11131103
alex = final.haskell-nix.tool "ghc8107" "alex" ({config, pkgs, ...}: {
11141104
compilerSelection = p: p.haskell.compiler;
11151105
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;
11181108
});
11191109
happy = final.haskell-nix.tool "ghc8107" "happy"
11201110
({config, pkgs, ...}: {
11211111
compilerSelection = p: p.haskell.compiler;
11221112
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;
11251115
});
11261116
hscolour = (final.haskell-nix.hackage-package
11271117
({config, pkgs, ...}: {
11281118
compilerSelection = p: p.haskell.compiler;
11291119
compiler-nix-name = buildBootstrapper.compilerNixName;
11301120
name = "hscolour";
11311121
version = "1.24.4";
1132-
inherit ghcOverride index-state;
1122+
index-state = final.haskell-nix.internalHackageIndexState;
11331123
materialized = ../materialized/bootstrap + "/${buildBootstrapper.compilerNixName}/hscolour";
11341124
})).getComponent "exe:HsColour";
1135-
};
11361125
};
11371126
};
11381127
}

0 commit comments

Comments
 (0)