2011-07-13 10:13:32 +01:00
|
|
|
{ stdenv, fetchurl, sbcl, texinfo, perl, makeWrapper, rlwrap ? null, tk ? null, gnuplot ? null }:
|
2009-10-29 11:57:45 +00:00
|
|
|
|
|
|
|
let
|
2011-05-06 08:35:15 +01:00
|
|
|
name = "maxima";
|
2015-05-13 11:17:16 +01:00
|
|
|
version = "5.36.1";
|
2011-07-13 10:13:32 +01:00
|
|
|
|
|
|
|
searchPath =
|
2016-04-13 13:53:51 +01:00
|
|
|
stdenv.lib.makeBinPath
|
2011-07-13 10:13:32 +01:00
|
|
|
(stdenv.lib.filter (x: x != null) [ sbcl rlwrap tk gnuplot ]);
|
2009-10-29 11:57:45 +00:00
|
|
|
in
|
2007-09-26 01:19:26 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-10-29 11:57:45 +00:00
|
|
|
name = "${name}-${version}";
|
2007-09-26 01:19:26 +01:00
|
|
|
|
2009-01-04 20:18:10 +00:00
|
|
|
src = fetchurl {
|
2009-10-29 11:57:45 +00:00
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz";
|
2015-05-13 11:17:16 +01:00
|
|
|
sha256 = "0x1rk659sn3cq0n5c90848ilzr1gb1wf0072fl6jhkdq00qgh2s0";
|
2009-01-04 20:18:10 +00:00
|
|
|
};
|
2007-09-26 01:19:26 +01:00
|
|
|
|
2011-07-13 10:13:32 +01:00
|
|
|
buildInputs = [sbcl texinfo perl makeWrapper];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Make sure that maxima can find its runtime dependencies.
|
|
|
|
for prog in "$out/bin/"*; do
|
2013-08-28 15:33:33 +01:00
|
|
|
wrapProgram "$prog" --prefix PATH ":" "$out/bin:${searchPath}"
|
2011-07-13 10:13:32 +01:00
|
|
|
done
|
|
|
|
# Move emacs modules and documentation into the right place.
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/emacs $out/share/doc
|
2011-07-13 10:13:32 +01:00
|
|
|
ln -s ../maxima/${version}/emacs $out/share/emacs/site-lisp
|
|
|
|
ln -s ../maxima/${version}/doc $out/share/doc/maxima
|
2010-11-05 14:35:37 +00:00
|
|
|
'';
|
|
|
|
|
2014-12-22 09:53:00 +00:00
|
|
|
# Failures in the regression test suite won't abort the build process. We run
|
|
|
|
# the suite only so that potential errors show up in the build log. See also:
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=3365831&group_id=4933&atid=104933.
|
2011-07-13 10:13:32 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2007-09-26 01:19:26 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Computer algebra system";
|
2010-08-26 12:44:43 +01:00
|
|
|
homepage = "http://maxima.sourceforge.net";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-08-26 12:44:43 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Maxima is a fairly complete computer algebra system written in
|
|
|
|
lisp with an emphasis on symbolic computation. It is based on
|
|
|
|
DOE-MACSYMA and licensed under the GPL. Its abilities include
|
|
|
|
symbolic integration, 3D plotting, and an ODE solver.
|
|
|
|
'';
|
|
|
|
|
2010-08-26 12:49:54 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2007-09-26 01:19:26 +01:00
|
|
|
};
|
|
|
|
}
|