From 4015abfb18b0b219cee30797c9b63515ea998d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Tue, 11 Dec 2007 19:00:56 +0000 Subject: [PATCH] * fixed libraries/core packages for ghc-6.8 svn path=/nixpkgs/trunk/; revision=9908 --- pkgs/development/compilers/ghc-6.8/default.nix | 7 ++++--- 1 file 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;