7 , avxSupport ? stdenv.hostPlatform.avxSupport
10 stdenv.mkDerivation rec {
12 version = "904-beta-c";
14 src = fetchFromGitHub {
15 name = "${pname}-source";
19 hash = "sha256-MzEO/saHEBl1JwVlFC6P2UKm9RZnV7KVrNd9h4cPV/w=";
30 # emulating build_all.sh configuration variables
32 if stdenv.isDarwin then "darwin"
33 else if stdenv.hostPlatform.isAarch then "raspberry"
34 else if stdenv.isLinux then "linux"
38 if stdenv.is32bit then "j32"
39 else if stdenv.isx86_64 then
40 if (stdenv.isLinux && avxSupport) then "j64avx" else "j64"
41 else if stdenv.isAarch64 then
42 if stdenv.isDarwin then "j64arm" else "j64"
50 export JLIB=$SRCDIR/jlibrary
57 j64x="${j64x}" jplatform="${jplatform}" ./build_all.sh
59 cp -v $SRCDIR/bin/${jplatform}/${j64x}/* "$JLIB/bin"
70 echo 'i. 10' | $JLIB/bin/jconsole | fgrep "0 1 2 3 4 5 6 7 8 9"
72 # Now run the real tests
77 $JLIB/bin/jconsole < $f > /dev/null || echo FAIL && echo PASS
87 mkdir -p "$out/share/j/"
88 cp -r $JLIB/{addons,system} "$out/share/j"
89 cp -r $JLIB/bin "$out"
95 homepage = "http://jsoftware.com/";
96 description = "J programming language, an ASCII-based APL successor";
98 J is a high-level, general-purpose programming language that is
99 particularly suited to the mathematical, statistical, and logical analysis
100 of data. It is a powerful tool for developing algorithms and exploring
101 problems that are not already well understood.
103 license = licenses.gpl3Plus;
104 maintainers = with maintainers; [ raskin synthetica AndersonTorres ];
105 platforms = with platforms; unix;