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/top-level/haskell-packages.nix | |
parent | 44c848bc0230252290495b10ac7f03a77f8a949c (diff) | |
download | nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.gz nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.bz2 nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.lz nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.xz nixlib-d0706da55e4f028b8f91d32ea6c9d20a5f4429b0.tar.zst nixlib-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/top-level/haskell-packages.nix')
-rw-r--r-- | pkgs/top-level/haskell-packages.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 744ddcb879e6..29dc3e594835 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -157,10 +157,16 @@ in { }; ghc941 = callPackage ../development/compilers/ghc/9.4.1.nix { bootPkgs = - # TODO(@sternenseemann): Package 9.0.2 bindist or wait for upstream fix - # Need to use 902 due to + # 9.2 is broken due to # https://gitlab.haskell.org/ghc/ghc/-/issues/21914 - packages.ghc902; + # Use 8.10 as a workaround, TODO: maybe package binary 9.0? + # aarch ghc8107Binary exceeds max output size on hydra + if stdenv.hostPlatform.isAarch then + packages.ghc8107BinaryMinimal + else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then + packages.ghc8107 + else + packages.ghc8107Binary; inherit (buildPackages.python3Packages) sphinx; # Need to use apple's patched xattr until # https://github.com/xattr/xattr/issues/44 and |