2015-06-12 04:00:13 +01:00
|
|
|
{ stdenv, fetchurl, readline, gettext, ncurses }:
|
2015-03-16 21:57:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnu-apl-${version}";
|
2016-08-29 00:49:30 +01:00
|
|
|
version = "1.6";
|
2015-03-16 21:57:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/apl/apl-${version}.tar.gz";
|
2016-08-29 00:49:30 +01:00
|
|
|
sha256 = "057zwzvvgcrrwsl52a27w86hgy31jqq6avqq629xj7yq90qah3ay";
|
2015-03-16 21:57:51 +00:00
|
|
|
};
|
|
|
|
|
2015-06-12 04:00:13 +01:00
|
|
|
buildInputs = [ readline gettext ncurses ];
|
2015-03-16 21:57:51 +00:00
|
|
|
|
2016-12-18 03:29:17 +00:00
|
|
|
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--disable-silent-rules"
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2015-03-30 13:54:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Free interpreter for the APL programming language";
|
2015-03-16 21:57:51 +00:00
|
|
|
homepage = http://www.gnu.org/software/apl/;
|
2015-03-30 13:54:22 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.kovirobi ];
|
2016-12-18 03:29:17 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2015-03-30 13:54:22 +01: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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|