* 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:
parent
03ffede228
commit
51e287469c
5
pkgs/development/compilers/ghc/builder.sh
Normal file
5
pkgs/development/compilers/ghc/builder.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
configureFlags="--with-gcc=$gcc/bin/gcc"
|
||||||
|
|
||||||
|
genericBuild
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, perl, ghc, m4, readline, ncurses}:
|
{stdenv, gcc, fetchurl, perl, ghc, m4, readline, ncurses}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "ghc-6.4.1";
|
name = "ghc-6.4.1";
|
||||||
@ -8,4 +8,6 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
buildInputs = [perl ghc m4];
|
buildInputs = [perl ghc m4];
|
||||||
propagatedBuildInputs = [readline ncurses];
|
propagatedBuildInputs = [readline ncurses];
|
||||||
|
builder = ./builder.sh;
|
||||||
|
inherit gcc;
|
||||||
}
|
}
|
||||||
|
@ -686,6 +686,7 @@ rec {
|
|||||||
|
|
||||||
ghc = (import ../development/compilers/ghc) {
|
ghc = (import ../development/compilers/ghc) {
|
||||||
inherit fetchurl stdenv perl ncurses readline;
|
inherit fetchurl stdenv perl ncurses readline;
|
||||||
|
gcc = stdenv.gcc;
|
||||||
ghc = ghcboot;
|
ghc = ghcboot;
|
||||||
m4 = gnum4;
|
m4 = gnum4;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user