summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndres Löh <mail@andres-loeh.de>2007-12-11 19:00:56 +0000
committerAndres Löh <mail@andres-loeh.de>2007-12-11 19:00:56 +0000
commit4015abfb18b0b219cee30797c9b63515ea998d2a (patch)
tree904986f553ff05178e8c9783b598fa0e3172abe2
parent6bcfbb2aaa54e5c9b7492d5ae301c3c58872e708 (diff)
downloadnixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar.gz
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar.bz2
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar.lz
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar.xz
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.tar.zst
nixpkgs-4015abfb18b0b219cee30797c9b63515ea998d2a.zip
* fixed libraries/core packages for ghc-6.8
svn path=/nixpkgs/trunk/; revision=9908
-rw-r--r--pkgs/development/compilers/ghc-6.8/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/compilers/ghc-6.8/default.nix b/pkgs/development/compilers/ghc-6.8/default.nix
index 19f7a679e4c..538dffa9e93 100644
--- a/pkgs/development/compilers/ghc-6.8/default.nix
+++ b/pkgs/development/compilers/ghc-6.8/default.nix
@@ -34,12 +34,13 @@ stdenv.mkDerivation (rec {
   # Thanks to Ian Lynagh ghc now works on x86_64-linux as well 
   patchPhase = if (stdenv.system == "x86_64-linux") then "patch -p2 < $patch64" else "";
 
-  configureFlags="--with-gmp-libraries=$gmp/lib --with-readline-libraries=\"$readline/lib\"";
+  configureFlags="--with-gmp-libraries=${gmp}/lib --with-readline-libraries=${readline}/lib";
 
-  # the presence of this file makes Cabal cry for happy while generating makefiles ...
   preConfigure = "
-    echo 'GhcThreaded=NO' > mk/build.mk
+    # the presence of this file makes Cabal cry for happy while generating makefiles ...
     rm libraries/haskell-src/Language/Haskell/Parser.ly
+    # still requires a hack for ncurses
+    sed -i \"s|^\\\(ld-options.*$\\\)|\\\1 -L${ncurses}/lib|\" libraries/readline/readline.buildinfo.in
   ";
 
   inherit readline gmp ncurses;