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