947c5029d7
svn path=/nixpkgs/trunk/; revision=17824
38 lines
999 B
Nix
38 lines
999 B
Nix
{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";
|
|
};
|
|
}
|