2015-05-15 20:22:54 +01:00
|
|
|
{ stdenv, fetchurl, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2013-06-07 01:13:54 +01:00
|
|
|
name = "hugs98-200609";
|
2007-08-20 11:33:42 +01:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
src = fetchurl {
|
2010-07-28 12:55:54 +01:00
|
|
|
url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz;
|
2016-03-24 22:57:54 +00:00
|
|
|
sha256 = "1dj65c39zpy6qqvvrwns2hzj6ipnd4ih655xj7kgyk2nfdvd5x1w";
|
2009-03-06 23:21:28 +00:00
|
|
|
};
|
|
|
|
|
2016-03-24 22:57:54 +00:00
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = https://aur.archlinux.org/cgit/aur.git/plain/hsbase_inline.patch?h=hugs;
|
|
|
|
name = "hsbase_inline.patch";
|
|
|
|
sha256 = "1h0sp16d17hlm6gj7zdbgwrjwi2l4q02m8p0wd60dp4gn9i9js0v";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison ];
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2015-05-15 20:22:54 +01:00
|
|
|
postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +";
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2017-08-23 15:29:10 +01:00
|
|
|
preConfigure = "unset STRIP";
|
|
|
|
|
2015-05-15 20:22:54 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-char-encoding=utf8" # require that the UTF-8 encoding is always used
|
|
|
|
"--disable-path-canonicalization"
|
|
|
|
"--disable-timer" # evaluation timing (for benchmarking Hugs)
|
|
|
|
"--disable-profiling" # heap profiler
|
|
|
|
"--disable-stack-dumps" # stack dump on stack overflow
|
|
|
|
"--enable-large-banner" # multiline startup banner
|
|
|
|
"--disable-internal-prims" # experimental primitives to access Hugs's innards
|
|
|
|
"--disable-debug" # include C debugging information (for debugging Hugs)
|
|
|
|
"--disable-tag" # runtime tag checking (for debugging Hugs)
|
|
|
|
"--disable-lint" # "lint" flags (for debugging Hugs)
|
|
|
|
"--disable-only98" # build Hugs to understand Haskell 98 only
|
|
|
|
"--enable-ffi"
|
|
|
|
"--enable-pthreads" # build Hugs using POSIX threads C library
|
|
|
|
];
|
2009-03-06 23:21:28 +00:00
|
|
|
|
2016-03-24 22:57:54 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.haskell.org/hugs;
|
2015-05-15 20:22:54 +01:00
|
|
|
description = "Haskell interpreter";
|
2016-03-24 22:57:54 +00:00
|
|
|
maintainers = with maintainers; [ joachifm ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2007-08-20 11:33:42 +01:00
|
|
|
};
|
|
|
|
}
|