mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
* statically fix the gcc instance used by ghc
svn path=/nixpkgs/trunk/; revision=10099
This commit is contained in:
parent
c0ce72bfc2
commit
35d05e3cc1
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue