2015-06-12 03:00:13 +00:00
|
|
|
{ stdenv, fetchurl, readline, gettext, ncurses }:
|
2015-03-16 21:57:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnu-apl-${version}";
|
2019-07-01 16:21:51 +00:00
|
|
|
version = "1.8";
|
2015-03-16 21:57:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/apl/apl-${version}.tar.gz";
|
2019-07-01 16:21:51 +00:00
|
|
|
sha256 = "1jxvv2h3y1am1fw6r5sn3say1n0dj8shmscbybl0qhqdia2lqkql";
|
2015-03-16 21:57:51 +00:00
|
|
|
};
|
|
|
|
|
2015-06-12 03:00:13 +00:00
|
|
|
buildInputs = [ readline gettext ncurses ];
|
2015-03-16 21:57:51 +00:00
|
|
|
|
2017-11-16 17:44:12 +00:00
|
|
|
# Needed with GCC 7
|
2018-03-18 17:02:14 +00:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=int-in-bool-context"
|
|
|
|
+ stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=null-dereference";
|
2017-11-16 17:44:12 +00:00
|
|
|
|
2018-03-18 17:02:14 +00:00
|
|
|
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
2016-12-18 03:29:17 +00:00
|
|
|
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
|
|
|
|
'';
|
|
|
|
|
2015-03-16 21:57:51 +00:00
|
|
|
postInstall = ''
|
|
|
|
cp -r support-files/ $out/share/doc/
|
|
|
|
find $out/share/doc/support-files -name 'Makefile*' -delete
|
|
|
|
'';
|
|
|
|
|
2018-03-18 17:02:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-03-30 12:54:22 +00:00
|
|
|
description = "Free interpreter for the APL programming language";
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = https://www.gnu.org/software/apl/;
|
2015-03-30 12:54:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.kovirobi ];
|
2017-03-20 08:24:35 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2015-03-30 12:54:22 +00:00
|
|
|
inherit version;
|
2015-03-16 21:57:51 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU APL is a free interpreter for the programming language APL, with an
|
|
|
|
(almost) complete implementation of ISO standard 13751 aka. Programming
|
|
|
|
Language APL, Extended. GNU APL was written and is being maintained by
|
|
|
|
Jürgen Sauermann.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|