From 4397f7078ed615c79e89d902e42ca0738133bb8d Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 24 Nov 2021 17:07:57 +0100 Subject: [PATCH] pkgsMusl.haskell.compiler.ghc884: return accurate platforms (cherry picked from commit b2c2215f606426a8bc8368b344f14a5123f14f3c) --- pkgs/development/compilers/ghc/8.8.4.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/ghc/8.8.4.nix b/pkgs/development/compilers/ghc/8.8.4.nix index a5ef8b857167..e0f6c84637b2 100644 --- a/pkgs/development/compilers/ghc/8.8.4.nix +++ b/pkgs/development/compilers/ghc/8.8.4.nix @@ -347,8 +347,15 @@ stdenv.mkDerivation (rec { timeout = 24 * 3600; inherit (ghc.meta) license; # hardcode platforms because the bootstrap GHC differs depending on the platform, - # with differing platforms available for each of them - platforms = ["x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin"]; + # with differing platforms available for each of them; See HACK comment in + # 8.10.2-binary.nix for an explanation of the musl special casing. + platforms = [ + "x86_64-linux" + ] ++ lib.optionals (!hostPlatform.isMusl) [ + "i686-linux" + "aarch64-linux" + "x86_64-darwin" + ]; # integer-simple builds are broken with musl when bootstrapping using # GHC 8.10.2 and below, however it is not possible to reverse bootstrap # GHC 8.8.4 with GHC 8.10.7.