* ghc should call the gcc instance it's been built with (to compile Haskell code)

svn path=/nixpkgs/trunk/; revision=4658
This commit is contained in:
Andres Löh 2006-01-31 23:58:32 +00:00
parent 03ffede228
commit 51e287469c
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
source $stdenv/setup
configureFlags="--with-gcc=$gcc/bin/gcc"
genericBuild

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, perl, ghc, m4, readline, ncurses}:
{stdenv, gcc, fetchurl, perl, ghc, m4, readline, ncurses}:
stdenv.mkDerivation {
name = "ghc-6.4.1";
@ -8,4 +8,6 @@ stdenv.mkDerivation {
};
buildInputs = [perl ghc m4];
propagatedBuildInputs = [readline ncurses];
builder = ./builder.sh;
inherit gcc;
}

View file

@ -686,6 +686,7 @@ rec {
ghc = (import ../development/compilers/ghc) {
inherit fetchurl stdenv perl ncurses readline;
gcc = stdenv.gcc;
ghc = ghcboot;
m4 = gnum4;
};