From 6f1a319c4567d1c4273f38949ba65586585f2144 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Wed, 1 Sep 2021 14:21:08 +0200 Subject: [PATCH] haskell.compiler.ghc921: mark as broken on darwin Seems like there is either a fundamental issue with how our derivation works or an upstream bug prevent GHC 9.2.1 from compiling on macOS using nixpkgs. Until someone fixes that or rc2 comes around, we can save the build time. --- pkgs/development/compilers/ghc/9.2.1.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/9.2.1.nix b/pkgs/development/compilers/ghc/9.2.1.nix index 66cc4d6c322e..4664ed834f57 100644 --- a/pkgs/development/compilers/ghc/9.2.1.nix +++ b/pkgs/development/compilers/ghc/9.2.1.nix @@ -307,7 +307,10 @@ stdenv.mkDerivation (rec { # integer-simple builds are broken when GHC links against musl. # See https://github.com/NixOS/nixpkgs/pull/129606#issuecomment-881323743. - broken = enableIntegerSimple && hostPlatform.isMusl; + # Linker failure on macOS: + # https://gitlab.haskell.org/ghc/ghc/-/issues/19950#note_373726 + broken = (enableIntegerSimple && hostPlatform.isMusl) + || stdenv.hostPlatform.isDarwin; }; } // lib.optionalAttrs targetPlatform.useAndroidPrebuilt {