2014-05-18 16:14:03 +01:00
|
|
|
{ stdenv, fetchurl, perl, ghc, binary, zlib, utf8String, readline, fgl,
|
|
|
|
regexCompat, HsSyck, random }:
|
2012-10-07 16:52:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jhc-${version}";
|
2014-05-18 16:14:03 +01:00
|
|
|
version = "0.8.1";
|
2012-10-07 16:52:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://repetae.net/dist/${name}.tar.gz";
|
2014-05-18 16:14:03 +01:00
|
|
|
sha256 = "11fya5ggk6q4vcm3kwjacfaaqvkammih25saqwlr1g40bcikbnf2";
|
2012-10-07 16:52:43 +01:00
|
|
|
};
|
|
|
|
|
2014-05-18 16:14:03 +01:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./src/Util/Interact.hs \
|
|
|
|
--replace USE_NOLINE USE_READLINE
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ perl ghc binary zlib utf8String
|
|
|
|
readline fgl regexCompat HsSyck random
|
|
|
|
];
|
2012-10-07 16:52:43 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-05-18 16:14:03 +01:00
|
|
|
description = "Whole-program, globally optimizing Haskell compiler";
|
2013-03-11 09:47:04 +00:00
|
|
|
homepage = "http://repetae.net/computer/jhc/";
|
2014-05-18 16:15:06 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2013-03-11 09:47:04 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-05-18 16:14:03 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
|
|
|
[ aforemny simons thoughtpolice ];
|
2012-10-07 16:52:43 +01:00
|
|
|
};
|
|
|
|
}
|