2009-04-16 20:21:03 +02:00
|
|
|
{stdenv, fetchurl, perl, ghc, m4, readline, ncurses, gmp}:
|
2004-02-12 14:18:24 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-06-22 17:22:55 +02:00
|
|
|
name = "ghc-6.4.2";
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2004-02-12 14:18:24 +01:00
|
|
|
src = fetchurl {
|
2007-08-24 14:32:36 +02:00
|
|
|
url = http://www.haskell.org/ghc/dist/6.4.2/ghc-6.4.2-src.tar.bz2;
|
2006-06-22 17:22:55 +02:00
|
|
|
md5 = "a394bf14e94c3bca5507d568fcc03375";
|
2004-02-12 14:18:24 +01:00
|
|
|
};
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2004-04-07 16:16:57 +02:00
|
|
|
buildInputs = [perl ghc m4];
|
2011-08-08 21:47:31 +02:00
|
|
|
|
2007-08-15 13:25:20 +02:00
|
|
|
propagatedBuildInputs = [readline ncurses gmp];
|
2009-04-16 20:21:03 +02: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 18:45:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Glasgow Haskell Compiler";
|
2013-03-23 13:05:43 +01:00
|
|
|
inherit (ghc.meta) license platforms;
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2004-02-12 14:18:24 +01:00
|
|
|
}
|