2015-06-12 05:00:13 +02:00
|
|
|
{ stdenv, fetchurl, readline, gettext, ncurses }:
|
2015-03-16 22:57:51 +01:00
|
|
|
|
2017-03-20 09:24:35 +01:00
|
|
|
with stdenv.lib;
|
2015-03-16 22:57:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnu-apl-${version}";
|
2017-03-20 09:24:35 +01:00
|
|
|
version = "1.7";
|
2015-03-16 22:57:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/apl/apl-${version}.tar.gz";
|
2017-03-20 09:24:35 +01:00
|
|
|
sha256 = "07xq8ddlmz8psvsmwr23gar108ri0lwmw0n6kpxcv8ypas1f5xlg";
|
2015-03-16 22:57:51 +01:00
|
|
|
};
|
|
|
|
|
2015-06-12 05:00:13 +02:00
|
|
|
buildInputs = [ readline gettext ncurses ];
|
2015-03-16 22:57:51 +01:00
|
|
|
|
2017-03-20 09:24:35 +01:00
|
|
|
patchPhase = optionalString stdenv.isDarwin ''
|
2016-12-18 04:29:17 +01:00
|
|
|
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
|
|
|
|
'';
|
|
|
|
|
2015-03-16 22:57:51 +01:00
|
|
|
postInstall = ''
|
|
|
|
cp -r support-files/ $out/share/doc/
|
|
|
|
find $out/share/doc/support-files -name 'Makefile*' -delete
|
|
|
|
'';
|
|
|
|
|
2017-03-20 09:24:35 +01:00
|
|
|
meta = {
|
2015-03-30 14:54:22 +02:00
|
|
|
description = "Free interpreter for the APL programming language";
|
2015-03-16 22:57:51 +01:00
|
|
|
homepage = http://www.gnu.org/software/apl/;
|
2015-03-30 14:54:22 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.kovirobi ];
|
2017-03-20 09:24:35 +01:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2015-03-30 14:54:22 +02:00
|
|
|
inherit version;
|
2015-03-16 22:57:51 +01: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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|