diff --git a/pkgs/development/interpreters/j/default.nix b/pkgs/development/interpreters/j/default.nix index 4c064a42ebf8..94641e20e1bc 100644 --- a/pkgs/development/interpreters/j/default.nix +++ b/pkgs/development/interpreters/j/default.nix @@ -10,6 +10,8 @@ stdenv.mkDerivation rec { buildInputs = [ readline ]; bits = if stdenv.is64bit then "64" else "32"; + doCheck = true; + buildPhase = '' sed -i bin/jconfig -e ' s@bits=32@bits=${bits}@g; @@ -19,19 +21,29 @@ stdenv.mkDerivation rec { ' sed -i bin/build_libj -e 's@>& make.txt@ 2>\&1 | tee make.txt@' + sed -i f2.c -e 's/_isnan(\*wv)/_isnan(y)/' + touch *.c *.h sh -o errexit bin/build_jconsole + [ -e j/bin/jconsole ] sh -o errexit bin/build_libj + [ -e j/bin/libj.so ] sh -o errexit bin/build_defs + [ -e defs/hostdefs.ijs ] && [ -e defs/netdefs.ijs ] sh -o errexit bin/build_tsdll + [ -x libtsdll.so ] sed -i j/bin/profile.ijs -e " s@userx=[.] *'.j'@userx=. '/.j'@; s@bin,'/profilex.ijs'@user,'/profilex.ijs'@ ; - /install=./ainstall=. install,'/share/j' + /install=./ainstall=. install,'/share/j' " ''; + checkPhase = '' + echo 'i. 5' | j/bin/jconsole | fgrep "0 1 2 3 4" + ''; + installPhase = '' mkdir -p "$out" cp -r j/bin "$out/bin" @@ -45,7 +57,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "J programming language, an ASCII-based APL successor"; maintainers = with maintainers; [ raskin ]; - platforms = platforms.unix; + platforms = platforms.linux; license = licenses.gpl3Plus; homepage = http://jsoftware.com/; };