From ddada35b50fb79d7448f68380bf995a80d5cbb72 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 14 Aug 2022 17:33:45 +0200 Subject: [PATCH] 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. --- pkgs/top-level/haskell-packages.nix | 13 ++++++++----- 1 file 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;