From e54ae8cce1dc6e75b506da50e9219e033794d618 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 22 Mar 2014 10:44:27 +0100 Subject: [PATCH] ghc-7.8.1: fix build on recent versions of Darwin --- pkgs/development/compilers/ghc/7.8.1.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/ghc/7.8.1.nix b/pkgs/development/compilers/ghc/7.8.1.nix index c9ca6fd8719b..f58ca9cc1fc2 100644 --- a/pkgs/development/compilers/ghc/7.8.1.nix +++ b/pkgs/development/compilers/ghc/7.8.1.nix @@ -22,6 +22,7 @@ stdenv.mkDerivation rec { preConfigure = '' echo "${buildMK}" > mk/build.mk sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure + '' + stdenv.lib.optionalString (!stdenv.isDarwin) '' export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/ghc-${version}" '';