2007-08-15 13:25:20 +02:00
|
|
|
{stdenv, fetchurl, perl, readline, ncurses, gmp}:
|
2004-02-12 14:18:24 +01:00
|
|
|
|
2007-08-08 01:59:08 +02:00
|
|
|
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
2004-02-12 14:18:24 +01:00
|
|
|
|
2004-04-07 16:16:57 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-06-23 22:08:48 +02:00
|
|
|
name = "ghc-6.4.2";
|
2005-10-02 20:48:08 +02:00
|
|
|
builder = ./boot.sh;
|
2007-08-08 01:59:08 +02:00
|
|
|
src = if stdenv.system == "i686-linux" then
|
|
|
|
(fetchurl {
|
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/ghc-6.4.2-i386-unknown-linux.tar.bz2;
|
|
|
|
md5 = "092fe2e25dab22b926babe97cc77db1f";
|
|
|
|
}) else
|
|
|
|
(fetchurl {
|
|
|
|
url = http://haskell.org/ghc/dist/6.4.2/ghc-6.4.2-x86_64-unknown-linux.tar.bz2;
|
|
|
|
md5 = "8f5fe48798f715cd05214a10987bf6d5";
|
|
|
|
});
|
2005-10-11 15:31:33 +02:00
|
|
|
buildInputs = [perl];
|
2007-08-15 13:25:20 +02:00
|
|
|
propagatedBuildInputs = [readline ncurses gmp];
|
2007-08-08 01:59:08 +02:00
|
|
|
inherit readline ncurses gmp;
|
2004-02-12 14:18:24 +01:00
|
|
|
}
|