1 { lib, stdenv, fetchurl, bison }:
3 stdenv.mkDerivation rec {
8 url = "https://www.haskell.org/hugs/downloads/${version}/hugs98-Sep2006.tar.gz";
9 sha256 = "1dj65c39zpy6qqvvrwns2hzj6ipnd4ih655xj7kgyk2nfdvd5x1w";
14 url = "https://aur.archlinux.org/cgit/aur.git/plain/hsbase_inline.patch?h=hugs";
15 name = "hsbase_inline.patch";
16 sha256 = "1h0sp16d17hlm6gj7zdbgwrjwi2l4q02m8p0wd60dp4gn9i9js0v";
20 nativeBuildInputs = [ bison ];
22 postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +";
24 preConfigure = "unset STRIP";
27 "--enable-char-encoding=utf8" # require that the UTF-8 encoding is always used
28 "--disable-path-canonicalization"
29 "--disable-timer" # evaluation timing (for benchmarking Hugs)
30 "--disable-profiling" # heap profiler
31 "--disable-stack-dumps" # stack dump on stack overflow
32 "--enable-large-banner" # multiline startup banner
33 "--disable-internal-prims" # experimental primitives to access Hugs's innards
34 "--disable-debug" # include C debugging information (for debugging Hugs)
35 "--disable-tag" # runtime tag checking (for debugging Hugs)
36 "--disable-lint" # "lint" flags (for debugging Hugs)
37 "--disable-only98" # build Hugs to understand Haskell 98 only
39 "--enable-pthreads" # build Hugs using POSIX threads C library
43 broken = stdenv.isDarwin;
44 homepage = "https://www.haskell.org/hugs";
45 description = "Haskell interpreter";
46 maintainers = with maintainers; [ joachifm ];
47 license = licenses.bsd3;
48 platforms = platforms.all;