Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 50 lines 1.9 kB view raw
1{ lib, stdenv, fetchurl, bison }: 2 3stdenv.mkDerivation rec { 4 pname = "hugs98"; 5 version = "2006-09"; 6 7 src = fetchurl { 8 url = "https://www.haskell.org/hugs/downloads/${version}/hugs98-Sep2006.tar.gz"; 9 sha256 = "1dj65c39zpy6qqvvrwns2hzj6ipnd4ih655xj7kgyk2nfdvd5x1w"; 10 }; 11 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 ]; 19 20 nativeBuildInputs = [ bison ]; 21 22 postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +"; 23 24 preConfigure = "unset STRIP"; 25 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 ]; 41 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 }; 50}