2009-09-17 13:45:20 +02:00
|
|
|
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses, happy, alex}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.11.20090916";
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2009-09-17 13:45:20 +02:00
|
|
|
name = "ghc-${version}";
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2009-09-17 13:45:20 +02:00
|
|
|
homepage = "http://haskell.org/ghc";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${homepage}/dist/current/dist/${name}-src.tar.bz2";
|
|
|
|
sha256 = "a229c5052f401d03cdb77b8a96643eb80ba3faf1a9d0578c6fede1ce2a63cede";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ghc libedit perl gmp happy alex];
|
|
|
|
|
|
|
|
configureFlags=[
|
|
|
|
"--with-gmp-libraries=${gmp}/lib"
|
|
|
|
"--with-gmp-includes=${gmp}/include"
|
2014-12-17 19:11:30 +01:00
|
|
|
"--with-gcc=${stdenv.cc}/bin/gcc"
|
2009-09-17 13:45:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure=[
|
|
|
|
"make distclean"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit homepage;
|
|
|
|
description = "The Glasgow Haskell Compiler";
|
2013-03-23 13:05:43 +01:00
|
|
|
inherit (ghc.meta) license platforms;
|
2009-09-17 13:45:20 +02:00
|
|
|
};
|
|
|
|
}
|