about summary refs log tree commit diff
path: root/pkgs/top-level/haskell-packages.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-08-14 17:33:45 +0200
committersternenseemann <sternenseemann@systemli.org>2022-08-14 17:33:45 +0200
commitddada35b50fb79d7448f68380bf995a80d5cbb72 (patch)
tree86021e888345a77b7c129205d90918a4793da52e /pkgs/top-level/haskell-packages.nix
parent9ba6250a0dd9b71ad2c9eaa1421328b644c48db6 (diff)
downloadnixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar.gz
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar.bz2
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar.lz
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar.xz
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.tar.zst
nixlib-ddada35b50fb79d7448f68380bf995a80d5cbb72.zip
haskell.compiler.ghc941: bootstrap using GHC 9.0.2 on arm
text.cabal has the following snippet mandating this:

    -- GHC 8.10 has linking issues (probably TH-related) on ARM.
    if (arch(aarch64) || arch(arm)) && impl(ghc == 8.10.*)
      build-depends: base < 0

Since we're now testing 9.0.2 for bootstrapping on Hydra, we can also
use the proper GHC version for powerpc64le.
Diffstat (limited to 'pkgs/top-level/haskell-packages.nix')
-rw-r--r--pkgs/top-level/haskell-packages.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 29dc3e594835..b38853008757 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -157,14 +157,17 @@ in {
     };
     ghc941 = callPackage ../development/compilers/ghc/9.4.1.nix {
       bootPkgs =
-        # 9.2 is broken due to
+        # Building with 9.2 is broken due to
         # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
-        # Use 8.10 as a workaround, TODO: maybe package binary 9.0?
-        # aarch ghc8107Binary exceeds max output size on hydra
+        # Use 8.10 as a workaround where possible to keep bootstrap path short.
+
+        # On ARM text won't build with GHC 8.10.*
         if stdenv.hostPlatform.isAarch then
-          packages.ghc8107BinaryMinimal
+          # TODO(@sternenseemann): package bindist
+          packages.ghc902
+        # No suitable bindists for powerpc64le
         else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
-          packages.ghc8107
+          packages.ghc902
         else
           packages.ghc8107Binary;
       inherit (buildPackages.python3Packages) sphinx;