2010-07-28 13:55:54 +02:00
|
|
|
{ composableDerivation, fetchurl }:
|
|
|
|
|
2008-12-20 02:20:35 +01:00
|
|
|
let edf = composableDerivation.edf;
|
|
|
|
wwf = composableDerivation.wwf; in
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
composableDerivation.composableDerivation {} {
|
2013-06-07 02:13:54 +02:00
|
|
|
name = "hugs98-200609";
|
2007-08-20 12:33:42 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
src = fetchurl {
|
2010-07-28 13:55:54 +02:00
|
|
|
url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz;
|
|
|
|
sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6";
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
#encode all character I/O using the byte encoding
|
|
|
|
#determined by the locale in effect at that time. To
|
|
|
|
#require that the UTF-8 encoding is always used, give
|
|
|
|
#the --enable-char-encoding=utf8 option.
|
|
|
|
#[default=autodetect]
|
2009-03-07 00:21:28 +01:00
|
|
|
postUnpack = ''
|
|
|
|
find -type f | xargs sed -i 's@/bin/cp@cp@';
|
|
|
|
'';
|
2010-07-28 13:55:54 +02:00
|
|
|
|
|
|
|
configurePhase = "./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags";
|
2009-03-07 00:21:28 +01:00
|
|
|
|
|
|
|
flags =
|
|
|
|
edf { name = "pathCanonicalization"; feat="path-canonicalization"; }
|
|
|
|
// edf { name="timer"; } # enable evaluation timing (for benchmarking Hugs)
|
|
|
|
// edf { name="profiling"; }# enable heap profiler
|
|
|
|
// edf { name="stackDumps"; feat="stack-dummps"; } # enable stack dump on stack overflow
|
|
|
|
// edf { name="largeBanner"; feat="large-banner"; } # disable multiline startup banner
|
|
|
|
// edf { name="internal-prims"; } # experimental primitives to access Hugs's innards
|
|
|
|
// edf { name="debug"; } # include C debugging information (for debugging Hugs)
|
|
|
|
// edf { name="tag"; } # runtime tag checking (for debugging Hugs)
|
|
|
|
// edf { name="lint"; } # enable "lint" flags (for debugging Hugs)
|
|
|
|
// edf { name="only98"; } # build Hugs to understand Haskell 98 only
|
|
|
|
// edf { name="ffi"; }
|
|
|
|
#--with-nmake produce a Makefile compatible with nmake
|
|
|
|
#--with-gui build Hugs for Windows GUI (Borland C++ only)
|
|
|
|
// wwf { name="pthreads"; } # build Hugs using POSIX threads C library
|
|
|
|
;
|
|
|
|
|
|
|
|
cfg = {
|
|
|
|
largeBannerSupport = true; # seems to be default
|
2010-07-28 13:55:54 +02:00
|
|
|
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; };
|
|
|
|
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
|
|
|
|
};
|
2009-03-07 00:21:28 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = "as-is"; # gentoo is calling it this way..
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Haskell interpreter";
|
2009-03-07 00:21:28 +01:00
|
|
|
homepage = http://www.haskell.org/hugs;
|
2007-08-20 12:33:42 +02:00
|
|
|
};
|
|
|
|
}
|