2009-10-15 12:49:37 +00:00
|
|
|
{stdenv, fetchurl, ghc, perl, gmp, ncurses}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-01-04 07:44:32 +00:00
|
|
|
version = "6.12.1";
|
2011-08-08 19:47:31 +00:00
|
|
|
|
2009-10-15 12:49:37 +00:00
|
|
|
name = "ghc-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-04 07:44:32 +00:00
|
|
|
url = http://haskell.org/ghc/dist/6.12.1/ghc-6.12.1-src.tar.bz2;
|
|
|
|
sha256 = "0ajm4sypk4zgjp0m6i03fadyv5dm9vlqfnvsx1g94yk7vnd9zyfd";
|
2009-10-15 12:49:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
2011-08-08 19:47:21 +00:00
|
|
|
homepage = "http://haskell.org/ghc";
|
2009-10-15 12:49:37 +00:00
|
|
|
description = "The Glasgow Haskell Compiler";
|
2010-04-23 12:38:34 +00:00
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.marcweber
|
|
|
|
stdenv.lib.maintainers.andres
|
|
|
|
];
|
2013-03-23 12:05:43 +00:00
|
|
|
inherit (ghc.meta) license platforms;
|
2009-10-15 12:49:37 +00:00
|
|
|
};
|
2009-12-11 13:58:29 +00:00
|
|
|
|
2010-04-23 12:38:34 +00:00
|
|
|
# TODO: requires a comment as to what it does and why it is needed.
|
2009-12-11 13:58:29 +00:00
|
|
|
passthru = {
|
|
|
|
corePackages = [
|
2010-01-12 10:34:14 +00:00
|
|
|
[ "Cabal" "1.8.0.2" ]
|
2009-12-11 13:58:29 +00:00
|
|
|
[ "array" "0.3.0.0" ]
|
|
|
|
[ "base" "3.0.3.2" ]
|
|
|
|
[ "base" "4.2.0.0" ]
|
|
|
|
[ "bin-package-db" "0.0.0.0" ]
|
|
|
|
[ "bytestring" "0.9.1.5" ]
|
|
|
|
[ "containers" "0.3.0.0" ]
|
|
|
|
[ "directory" "1.0.1.0" ]
|
|
|
|
[ "dph-base" "0.4.0" ]
|
|
|
|
[ "dph-par" "0.4.0" ]
|
|
|
|
[ "dph-prim-interface" "0.4.0" ]
|
|
|
|
[ "dph-prim-par" "0.4.0" ]
|
|
|
|
[ "dph-prim-seq" "0.4.0" ]
|
|
|
|
[ "dph-seq" "0.4.0" ]
|
|
|
|
[ "extensible-exceptions" "0.1.1.1" ]
|
|
|
|
[ "ffi" "1.0" ]
|
|
|
|
[ "filepath" "1.1.0.3" ]
|
2010-01-12 10:34:14 +00:00
|
|
|
[ "ghc" "6.12.1" ]
|
2009-12-11 13:58:29 +00:00
|
|
|
[ "ghc-binary" "0.5.0.2" ]
|
|
|
|
[ "ghc-prim" "0.2.0.0" ]
|
|
|
|
[ "haskell98" "1.0.1.1" ]
|
|
|
|
[ "hpc" "0.5.0.4" ]
|
|
|
|
[ "integer-gmp" "0.2.0.0" ]
|
|
|
|
[ "old-locale" "1.0.0.2" ]
|
|
|
|
[ "old-time" "1.0.0.3" ]
|
|
|
|
[ "pretty" "1.0.1.1" ]
|
|
|
|
[ "process" "1.0.1.2" ]
|
|
|
|
[ "random" "1.0.0.2" ]
|
|
|
|
[ "rts" "1.0" ]
|
|
|
|
[ "syb" "0.1.0.2" ]
|
|
|
|
[ "template-haskell" "2.4.0.0" ]
|
|
|
|
[ "time" "1.1.4" ]
|
|
|
|
[ "unix" "2.4.0.0" ]
|
|
|
|
[ "utf8-string" "0.3.4" ]
|
|
|
|
];
|
|
|
|
};
|
2009-10-15 12:49:37 +00:00
|
|
|
}
|