diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-06-09 19:01:29 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-06-09 19:01:49 +0200 |
commit | 5e37c09f0664eb6583dbe30351cc3d21f1b4cadb (patch) | |
tree | 60e90dc3d4d7385a9f1ebc247c0a9c3396b51a09 /pkgs/development/compilers/ghc | |
parent | 789b1d613cff6ca82b01984e52d8a01dfc7ca02a (diff) | |
download | nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar.gz nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar.bz2 nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar.lz nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar.xz nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.tar.zst nixpkgs-5e37c09f0664eb6583dbe30351cc3d21f1b4cadb.zip |
ghc on darwin: second attempt to fix build
Tested not to affect hash on linux.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/7.6.3.nix | 5 |
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 01efcab9024..dc84446a276 100644 --- a/pkgs/development/compilers/ghc/7.6.3.nix +++ b/pkgs/development/compilers/ghc/7.6.3.nix @@ -17,13 +17,13 @@ in stdenv.mkDerivation rec { sha256 = "1669m8k9q72rpd2mzs0bh2q6lcwqiwd1ax3vrard1dgn64yq4hxx"; }; - buildInputs = [ ghc perl gmp ncurses ] - ++ stdenv.lib.optional stdenv.isDarwin binutils; # as: I don't understand '-' flag! + buildInputs = [ ghc perl gmp ncurses ]; buildMK = '' libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib" libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include" + '' + stdenv.lib.optionalString stdenv.isLinux '' # Set ghcFlags for building ghc itself SRC_HC_OPTS += ${ghcFlags} SRC_CC_OPTS += ${cFlags} @@ -33,6 +33,7 @@ in stdenv.mkDerivation rec { echo "${buildMK}" > mk/build.mk sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure + '' + stdenv.lib.optionalString stdenv.isLinux '' # Set ghcFlags for binaries that ghc builds sed -i -e 's|"\$topdir"|"\$topdir" ${ghcFlags}|' ghc/ghc.wrapper |