python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / interpreters / hugs / default.nix
blobed02b41b7668fd183c86d0d761bd6d3d572aae52
1 { lib, stdenv, fetchurl, bison }:
3 stdenv.mkDerivation rec {
4   pname = "hugs98";
5   version = "2006-09";
7   src = fetchurl {
8     url = "https://www.haskell.org/hugs/downloads/${version}/hugs98-Sep2006.tar.gz";
9     sha256 = "1dj65c39zpy6qqvvrwns2hzj6ipnd4ih655xj7kgyk2nfdvd5x1w";
10   };
12   patches =
13     [ (fetchurl {
14         url = "https://aur.archlinux.org/cgit/aur.git/plain/hsbase_inline.patch?h=hugs";
15         name = "hsbase_inline.patch";
16         sha256 = "1h0sp16d17hlm6gj7zdbgwrjwi2l4q02m8p0wd60dp4gn9i9js0v";
17       })
18     ];
20   nativeBuildInputs = [ bison ];
22   postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +";
24   preConfigure = "unset STRIP";
26   configureFlags = [
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
38     "--enable-ffi"
39     "--enable-pthreads"                 # build Hugs using POSIX threads C library
40   ];
42   meta = with lib; {
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;
49   };