diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e9b26903583..4c12089795d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4644,7 +4644,14 @@ let readline5 = callPackage ../development/libraries/readline/readline5.nix { }; - readline6 = callPackage ../development/libraries/readline/readline6.nix { }; + readline6 = callPackage ../development/libraries/readline/readline6.nix { + stdenv = + # On Darwin, Readline uses `-arch_only', which is specific to + # Apple-GCC. So give it what it expects. + if stdenv.isDarwin + then overrideGCC stdenv gccApple + else stdenv; + }; librdf_raptor = callPackage ../development/libraries/librdf/raptor.nix { };