* statically fix the gcc instance used by ghc

svn path=/nixpkgs/trunk/; revision=10099
This commit is contained in:
Andres Löh 2008-01-08 08:45:39 +00:00
parent c0ce72bfc2
commit 35d05e3cc1

View File

@ -29,12 +29,18 @@ stdenv.mkDerivation (rec {
cat $setupHook >> $out/nix-support/setup-hook
";
configureFlags="--with-gmp-libraries=${gmp}/lib --with-readline-libraries=${readline}/lib --with-gmp-includes=${gmp}/include";
configureFlags=[
"--with-gmp-libraries=${gmp}/lib"
"--with-readline-libraries=${readline}/lib"
"--with-gmp-includes=${gmp}/include"
"--with-gcc=${gcc}/bin/gcc"
];
preConfigure = "
# still requires a hack for ncurses
sed -i \"s|^\\\(ld-options.*$\\\)|\\\1 -L${ncurses}/lib|\" libraries/readline/readline.buildinfo.in
";
inherit (stdenv) gcc;
inherit readline gmp ncurses;
})