at v192 38 lines 1.6 kB view raw
1{ stdenv, fetchurl, bison }: 2 3stdenv.mkDerivation { 4 5 name = "hugs98-200609"; 6 7 src = fetchurl { 8 url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz; 9 sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6"; 10 }; 11 12 buildInputs = [ bison ]; 13 14 postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +"; 15 16 configureFlags = [ 17 "--enable-char-encoding=utf8" # require that the UTF-8 encoding is always used 18 "--disable-path-canonicalization" 19 "--disable-timer" # evaluation timing (for benchmarking Hugs) 20 "--disable-profiling" # heap profiler 21 "--disable-stack-dumps" # stack dump on stack overflow 22 "--enable-large-banner" # multiline startup banner 23 "--disable-internal-prims" # experimental primitives to access Hugs's innards 24 "--disable-debug" # include C debugging information (for debugging Hugs) 25 "--disable-tag" # runtime tag checking (for debugging Hugs) 26 "--disable-lint" # "lint" flags (for debugging Hugs) 27 "--disable-only98" # build Hugs to understand Haskell 98 only 28 "--enable-ffi" 29 "--enable-pthreads" # build Hugs using POSIX threads C library 30 ]; 31 32 meta = { 33 homepage = http://www.haskell.org/hugs; 34 description = "Haskell interpreter"; 35 license = "as-is"; # gentoo labels it this way 36 platforms = stdenv.lib.platforms.unix; # arbitrary choice 37 }; 38}