nixpkgs/pkgs/development/interpreters/gnu-apl/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, readline, gettext, ncurses }:
stdenv.mkDerivation rec {
name = "gnu-apl-${version}";
version = "1.6";
src = fetchurl {
url = "mirror://gnu/apl/apl-${version}.tar.gz";
sha256 = "057zwzvvgcrrwsl52a27w86hgy31jqq6avqq629xj7yq90qah3ay";
};
buildInputs = [ readline gettext ncurses ];
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"
];
postInstall = ''
cp -r support-files/ $out/share/doc/
find $out/share/doc/support-files -name 'Makefile*' -delete
'';
meta = with stdenv.lib; {
description = "Free interpreter for the APL programming language";
homepage = http://www.gnu.org/software/apl/;
license = licenses.gpl3Plus;
maintainers = [ maintainers.kovirobi ];
2016-12-18 03:29:17 +00:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
inherit version;
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.
'';
};
}