diff options
author | Andres Löh <mail@andres-loeh.de> | 2006-01-31 23:58:32 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2006-01-31 23:58:32 +0000 |
commit | 51e287469ce64d5a45d4c2247c39358c7f081998 (patch) | |
tree | c1917e2ede92373af2f83266206920428b5bcb32 /pkgs/development/compilers/ghc | |
parent | 03ffede2285d3ad777642d6c81ae53177f424660 (diff) | |
download | nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar.gz nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar.bz2 nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar.lz nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar.xz nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.tar.zst nixlib-51e287469ce64d5a45d4c2247c39358c7f081998.zip |
* ghc should call the gcc instance it's been built with (to compile Haskell code)
svn path=/nixpkgs/trunk/; revision=4658
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/builder.sh | 5 | ||||
-rw-r--r-- | pkgs/development/compilers/ghc/default.nix | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/builder.sh b/pkgs/development/compilers/ghc/builder.sh new file mode 100644 index 000000000000..fed830274480 --- /dev/null +++ b/pkgs/development/compilers/ghc/builder.sh @@ -0,0 +1,5 @@ +source $stdenv/setup + +configureFlags="--with-gcc=$gcc/bin/gcc" + +genericBuild diff --git a/pkgs/development/compilers/ghc/default.nix b/pkgs/development/compilers/ghc/default.nix index 1fdeef20c19d..670c146b2def 100644 --- a/pkgs/development/compilers/ghc/default.nix +++ b/pkgs/development/compilers/ghc/default.nix @@ -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; } |