2009-07-20 14:02:56 +01:00
|
|
|
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.10.4";
|
2011-08-08 20:47:31 +01:00
|
|
|
|
2009-07-20 14:02:56 +01:00
|
|
|
name = "ghc-${version}";
|
2011-08-08 20:47:31 +01:00
|
|
|
|
2009-07-20 14:02:56 +01:00
|
|
|
src = fetchurl {
|
2015-03-14 12:32:26 +00:00
|
|
|
url = "${meta.homepage}/dist/${version}/${name}-src.tar.bz2";
|
2009-07-20 14:02:56 +01:00
|
|
|
sha256 = "d66a8e52572f4ff819fe5c4e34c6dd1e84a7763e25c3fadcc222453c0bd8534d";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ghc libedit perl gmp];
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-25 10:22:10 +00:00
|
|
|
|
2015-03-14 12:32:26 +00:00
|
|
|
configureFlags = [
|
2015-10-15 16:43:23 +01:00
|
|
|
"--with-gmp-libraries=${gmp.out}/lib"
|
|
|
|
"--with-gmp-includes=${gmp.dev}/include"
|
2014-12-17 18:11:30 +00:00
|
|
|
"--with-gcc=${stdenv.cc}/bin/gcc"
|
2009-07-20 14:02:56 +01:00
|
|
|
];
|
|
|
|
|
2014-05-30 22:10:19 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
|
|
|
|
|
2009-07-20 14:02:56 +01:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://haskell.org/ghc;
|
2009-07-20 14:02:56 +01:00
|
|
|
description = "The Glasgow Haskell Compiler";
|
2015-03-25 14:45:20 +00:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"]; # Darwin is unsupported.
|
|
|
|
inherit (ghc.meta) license;
|
2017-08-23 15:43:45 +01:00
|
|
|
broken = true; # https://nix-cache.s3.amazonaws.com/log/6ys7lzckf2c0532kzhmss73mmz504can-ghc-6.10.4.drv
|
2009-07-20 14:02:56 +01:00
|
|
|
};
|
|
|
|
}
|