Added ghc-6.12.1 release candidate.

svn path=/nixpkgs/trunk/; revision=17824
This commit is contained in:
Andres Löh 2009-10-15 12:49:37 +00:00
parent 1a58864b52
commit 947c5029d7
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{stdenv, fetchurl, ghc, perl, gmp, ncurses}:
stdenv.mkDerivation rec {
version = "6.12.0.20091010";
name = "ghc-${version}";
homepage = "http://haskell.org/ghc";
src = fetchurl {
url = "http://darcs.haskell.org/~ghc/dist/6.12.1rc1/${name}-src.tar.bz2";
sha256 = "903552917778329fc79cc273ece81030324006f47157ddd4278cb08c1c637fd3";
};
buildInputs = [ghc perl gmp ncurses];
buildMK = ''
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib"
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
'';
preConfigure = ''
echo "${buildMK}" > mk/build.mk
'';
configureFlags=[
"--with-gcc=${stdenv.gcc}/bin/gcc"
];
# required, because otherwise all symbols from HSffi.o are stripped, and
# that in turn causes GHCi to abort
stripDebugFlags=["-S" "--keep-file-symbols"];
meta = {
inherit homepage;
description = "The Glasgow Haskell Compiler";
};
}

View file

@ -1999,6 +1999,14 @@ let
};
});
haskellPackages_ghc6121 = import ./haskell-packages.nix {
inherit pkgs;
ghc = import ../development/compilers/ghc/6.12.1.nix {
inherit fetchurl stdenv perl ncurses gmp;
ghc = ghc6101Binary;
};
};
haskellPackages_ghcHEAD = import ./haskell-packages.nix {
inherit pkgs;
ghc = import ../development/compilers/ghc/6.11.nix {