2009-07-20 15:02:56 +02:00
|
|
|
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.10.4";
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2009-07-20 15:02:56 +02:00
|
|
|
name = "ghc-${version}";
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2009-07-20 15:02:56 +02:00
|
|
|
src = fetchurl {
|
2015-03-14 13:32:26 +01:00
|
|
|
url = "${meta.homepage}/dist/${version}/${name}-src.tar.bz2";
|
2009-07-20 15:02:56 +02:00
|
|
|
sha256 = "d66a8e52572f4ff819fe5c4e34c6dd1e84a7763e25c3fadcc222453c0bd8534d";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ghc libedit perl gmp];
|
|
|
|
|
2015-03-14 13:32:26 +01:00
|
|
|
configureFlags = [
|
2009-07-20 15:02:56 +02:00
|
|
|
"--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-07-20 15:02:56 +02:00
|
|
|
];
|
|
|
|
|
2014-05-30 23:10:19 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
|
|
|
|
|
2009-07-20 15:02:56 +02:00
|
|
|
meta = {
|
2015-03-14 13:32:26 +01:00
|
|
|
homepage = "http://haskell.org/ghc";
|
2009-07-20 15:02:56 +02:00
|
|
|
description = "The Glasgow Haskell Compiler";
|
2015-03-25 15:45:20 +01:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"]; # Darwin is unsupported.
|
|
|
|
inherit (ghc.meta) license;
|
2009-07-20 15:02:56 +02:00
|
|
|
};
|
|
|
|
}
|