79cb8d11a6
the package). * Removed the old ghc-wrapper, which hasn't been used for a long time. * Renamed the "boot" GHC to "binary", which is more descriptive. (They *can* be used for other things than bootstrapping a GHC source build.) * Updated the GHC 6.10.1 binary to 6.10.2. svn path=/nixpkgs/trunk/; revision=15095
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{stdenv, fetchurl, readline, ghc, perl, m4, gmp, ncurses, haddock}:
|
|
|
|
stdenv.mkDerivation (rec {
|
|
name = "ghc-6.8.3";
|
|
homepage = "http://www.haskell.org/ghc";
|
|
|
|
src = map fetchurl [
|
|
{ url = "${homepage}/dist/6.8.3/${name}-src.tar.bz2";
|
|
sha256 = "1fc1ff82a555532f1c9d2dc628fd9de5e6ebab2ce6ee9490a34174ceb6f76e6b";
|
|
}
|
|
{ url = "${homepage}/dist/6.8.3/${name}-src-extralibs.tar.bz2";
|
|
sha256 = "ee2f5ba6a46157fc53eae515cb6fa1ed3c5023e7eac15981d92af0af00ee2ba2";
|
|
}
|
|
];
|
|
|
|
buildInputs = [ghc readline perl m4 gmp haddock];
|
|
|
|
meta = {
|
|
description = "The Glasgow Haskell Compiler";
|
|
};
|
|
|
|
configureFlags=[
|
|
"--with-gmp-libraries=${gmp}/lib"
|
|
"--with-gmp-includes=${gmp}/include"
|
|
"--with-readline-libraries=${readline}/lib"
|
|
"--with-gcc=${stdenv.gcc}/bin/gcc"
|
|
];
|
|
|
|
preConfigure = ''
|
|
# still requires a hack for ncurses
|
|
sed -i "s|^\(ld-options.*$\)|\1 -L${ncurses}/lib|" libraries/readline/readline.buildinfo.in
|
|
# build haddock docs
|
|
echo "HADDOCK_DOCS = YES" >> mk/build.mk
|
|
'';
|
|
|
|
installTargets = ["install" "install-docs"];
|
|
})
|