summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-05-30 23:13:49 +0200
committerVladimír Čunát <vcunat@gmail.com>2014-05-30 23:13:49 +0200
commit789b1d613cff6ca82b01984e52d8a01dfc7ca02a (patch)
tree5552fa801edf3f0c3da8db502573d4753a9c21a6 /pkgs
parent628ac8b0871553eb9a693ae163f6656739a7fbe2 (diff)
downloadnixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar.gz
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar.bz2
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar.lz
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar.xz
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.tar.zst
nixlib-789b1d613cff6ca82b01984e52d8a01dfc7ca02a.zip
ghc on darwin: attempt to fix build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/ghc/7.6.3.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/7.6.3.nix b/pkgs/development/compilers/ghc/7.6.3.nix
index f86d328ae0e4..01efcab90243 100644
--- a/pkgs/development/compilers/ghc/7.6.3.nix
+++ b/pkgs/development/compilers/ghc/7.6.3.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ghc, perl, gmp, ncurses }:
+{ stdenv, fetchurl, ghc, perl, gmp, ncurses, binutils }:
 
 let
   # The "-Wa,--noexecstack" options might be needed only with GNU ld (as opposed
@@ -17,7 +17,8 @@ in stdenv.mkDerivation rec {
     sha256 = "1669m8k9q72rpd2mzs0bh2q6lcwqiwd1ax3vrard1dgn64yq4hxx";
   };
 
-  buildInputs = [ ghc perl gmp ncurses ];
+  buildInputs = [ ghc perl gmp ncurses ]
+    ++ stdenv.lib.optional stdenv.isDarwin binutils; # as: I don't understand '-' flag!
 
   buildMK = ''
     libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib"