2009-04-16 19:21:03 +01:00
|
|
|
{stdenv, fetchurl, perl, ghc, m4, readline, ncurses, gmp}:
|
2004-02-12 13:18:24 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2006-06-22 16:22:55 +01:00
|
|
|
name = "ghc-6.4.2";
|
2009-04-16 19:21:03 +01:00
|
|
|
|
2004-02-12 13:18:24 +00:00
|
|
|
src = fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://www.haskell.org/ghc/dist/6.4.2/ghc-6.4.2-src.tar.bz2;
|
2006-06-22 16:22:55 +01:00
|
|
|
md5 = "a394bf14e94c3bca5507d568fcc03375";
|
2004-02-12 13:18:24 +00:00
|
|
|
};
|
2009-04-16 19:21:03 +01:00
|
|
|
|
2004-04-07 15:16:57 +01:00
|
|
|
buildInputs = [perl ghc m4];
|
2009-04-16 19:21:03 +01:00
|
|
|
|
2007-08-15 12:25:20 +01:00
|
|
|
propagatedBuildInputs = [readline ncurses gmp];
|
2009-04-16 19:21:03 +01:00
|
|
|
|
|
|
|
configureFlags = "--with-gcc=${stdenv.gcc}/bin/gcc";
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
# Don't you hate build processes that write in $HOME? :-(
|
|
|
|
export HOME=$(pwd)/fake-home
|
|
|
|
mkdir -p $HOME
|
|
|
|
'';
|
2006-10-11 17:45:55 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Glasgow Haskell Compiler";
|
|
|
|
};
|
2004-02-12 13:18:24 +00:00
|
|
|
}
|