mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
* 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 {
|
||||
name = "ghc-6.4.1";
|
||||
@ -8,4 +8,6 @@ stdenv.mkDerivation {
|
||||
};
|
||||
buildInputs = [perl ghc m4];
|
||||
propagatedBuildInputs = [readline ncurses];
|
||||
builder = ./builder.sh;
|
||||
inherit gcc;
|
||||
}
|
||||
|
@ -686,6 +686,7 @@ rec {
|
||||
|
||||
ghc = (import ../development/compilers/ghc) {
|
||||
inherit fetchurl stdenv perl ncurses readline;
|
||||
gcc = stdenv.gcc;
|
||||
ghc = ghcboot;
|
||||
m4 = gnum4;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user