hugs: fix build

This commit is contained in:
Peter Simons 2015-05-15 21:22:54 +02:00
parent 5fa611cf87
commit dec924f5a3
1 changed files with 22 additions and 38 deletions
pkgs/development/compilers/hugs

View File

@ -1,9 +1,7 @@
{ composableDerivation, fetchurl }: { stdenv, fetchurl, bison }:
let edf = composableDerivation.edf; stdenv.mkDerivation {
wwf = composableDerivation.wwf; in
composableDerivation.composableDerivation {} {
name = "hugs98-200609"; name = "hugs98-200609";
src = fetchurl { src = fetchurl {
@ -11,43 +9,29 @@ composableDerivation.composableDerivation {} {
sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6"; sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6";
}; };
#encode all character I/O using the byte encoding buildInputs = [ bison ];
#determined by the locale in effect at that time. To
#require that the UTF-8 encoding is always used, give
#the --enable-char-encoding=utf8 option.
#[default=autodetect]
postUnpack = ''
find -type f | xargs sed -i 's@/bin/cp@cp@';
'';
configurePhase = "./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags"; postUnpack = "find -type f -exec sed -i 's@/bin/cp@cp@' {} +";
flags = configureFlags = [
edf { name = "pathCanonicalization"; feat="path-canonicalization"; } "--enable-char-encoding=utf8" # require that the UTF-8 encoding is always used
// edf { name="timer"; } # enable evaluation timing (for benchmarking Hugs) "--disable-path-canonicalization"
// edf { name="profiling"; }# enable heap profiler "--disable-timer" # evaluation timing (for benchmarking Hugs)
// edf { name="stackDumps"; feat="stack-dummps"; } # enable stack dump on stack overflow "--disable-profiling" # heap profiler
// edf { name="largeBanner"; feat="large-banner"; } # disable multiline startup banner "--disable-stack-dumps" # stack dump on stack overflow
// edf { name="internal-prims"; } # experimental primitives to access Hugs's innards "--enable-large-banner" # multiline startup banner
// edf { name="debug"; } # include C debugging information (for debugging Hugs) "--disable-internal-prims" # experimental primitives to access Hugs's innards
// edf { name="tag"; } # runtime tag checking (for debugging Hugs) "--disable-debug" # include C debugging information (for debugging Hugs)
// edf { name="lint"; } # enable "lint" flags (for debugging Hugs) "--disable-tag" # runtime tag checking (for debugging Hugs)
// edf { name="only98"; } # build Hugs to understand Haskell 98 only "--disable-lint" # "lint" flags (for debugging Hugs)
// edf { name="ffi"; } "--disable-only98" # build Hugs to understand Haskell 98 only
#--with-nmake produce a Makefile compatible with nmake "--enable-ffi"
#--with-gui build Hugs for Windows GUI (Borland C++ only) "--enable-pthreads" # build Hugs using POSIX threads C library
// wwf { name="pthreads"; } # build Hugs using POSIX threads C library ];
;
cfg = {
largeBannerSupport = true; # seems to be default
char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; };
utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; };
};
meta = { meta = {
license = "as-is"; # gentoo is calling it this way..
description = "Haskell interpreter";
homepage = http://www.haskell.org/hugs; homepage = http://www.haskell.org/hugs;
description = "Haskell interpreter";
license = "as-is"; # gentoo is calling it this way
}; };
} }