diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-08-13 18:49:57 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-08-13 20:55:30 +0200 |
commit | d0706da55e4f028b8f91d32ea6c9d20a5f4429b0 (patch) | |
tree | b60c2a42bf553a2b31c4b02e0dbc2ce29da83777 /pkgs/development/compilers/ghc/9.4.1.nix | |
parent | 44c848bc0230252290495b10ac7f03a77f8a949c (diff) | |
download | nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.gz nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.bz2 nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.lz nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.xz nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.zst nixpkgs-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.zip |
haskell.compiler.ghc941: bootstrap using (binary) GHC 8.10.7
This shortens the bootstrap chain for 9.4.1 and should be kinder on rebuilds. It requires some messing around in the configure file, since it is not officially supported by upstream (but known to work). For now it saves us the hassle of adding another bindist to nixpkgs. When we support hadrian, we'll be able to use the already packaged 9.2.2 bindist.
Diffstat (limited to 'pkgs/development/compilers/ghc/9.4.1.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/9.4.1.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/9.4.1.nix b/pkgs/development/compilers/ghc/9.4.1.nix index ff7695427dd..71921f5e763 100644 --- a/pkgs/development/compilers/ghc/9.4.1.nix +++ b/pkgs/development/compilers/ghc/9.4.1.nix @@ -264,6 +264,13 @@ stdenv.mkDerivation (rec { --replace '*-android*|*-gnueabi*)' \ '*-android*|*-gnueabi*|*-musleabi*)' done + '' + # HACK: allow bootstrapping with GHC 8.10 which works fine, as we don't have + # binary 9.0 packaged. Bootstrapping with 9.2 is broken without hadrian. + + '' + substituteInPlace configure --replace \ + 'MinBootGhcVersion="9.0"' \ + 'MinBootGhcVersion="8.10"' ''; # TODO(@Ericson2314): Always pass "--target" and always prefix. |