2011-07-13 13:13:32 +04:00
|
|
|
{ stdenv, fetchurl, sbcl, texinfo, perl, makeWrapper, rlwrap ? null, tk ? null, gnuplot ? null }:
|
2009-10-29 14:57:45 +03:00
|
|
|
|
|
|
|
let
|
2011-05-06 11:35:15 +04:00
|
|
|
name = "maxima";
|
2011-12-06 18:07:11 +04:00
|
|
|
version = "5.25.1";
|
2011-07-13 13:13:32 +04:00
|
|
|
|
|
|
|
searchPath =
|
|
|
|
stdenv.lib.makeSearchPath "bin"
|
|
|
|
(stdenv.lib.filter (x: x != null) [ sbcl rlwrap tk gnuplot ]);
|
2009-10-29 14:57:45 +03:00
|
|
|
in
|
2007-09-26 04:19:26 +04:00
|
|
|
stdenv.mkDerivation {
|
2009-10-29 14:57:45 +03:00
|
|
|
name = "${name}-${version}";
|
2007-09-26 04:19:26 +04:00
|
|
|
|
2009-01-04 23:18:10 +03:00
|
|
|
src = fetchurl {
|
2009-10-29 14:57:45 +03:00
|
|
|
url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz";
|
2011-12-06 18:07:11 +04:00
|
|
|
sha256 = "8e98ad742151e52edb56337bd62c8a9749f7b598cb6ed4e991980e0e6f89706a";
|
2009-01-04 23:18:10 +03:00
|
|
|
};
|
2007-09-26 04:19:26 +04:00
|
|
|
|
2011-07-13 13:13:32 +04:00
|
|
|
buildInputs = [sbcl texinfo perl makeWrapper];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Make sure that maxima can find its runtime dependencies.
|
|
|
|
for prog in "$out/bin/"*; do
|
|
|
|
wrapProgram "$prog" --prefix PATH ":" "${searchPath}"
|
|
|
|
done
|
|
|
|
# Move emacs modules and documentation into the right place.
|
|
|
|
ensureDir $out/share/emacs $out/share/doc
|
|
|
|
ln -s ../maxima/${version}/emacs $out/share/emacs/site-lisp
|
|
|
|
ln -s ../maxima/${version}/doc $out/share/doc/maxima
|
2010-11-05 17:35:37 +03:00
|
|
|
'';
|
|
|
|
|
2011-07-13 13:13:32 +04:00
|
|
|
# The regression test suite has minor failures, but curiously enough
|
|
|
|
# this doesn't seem to abort the build process:
|
|
|
|
# <http://sourceforge.net/tracker/?func=detail&aid=3365831&group_id=4933&atid=104933>.
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2007-09-26 04:19:26 +04:00
|
|
|
|
|
|
|
meta = {
|
2008-01-30 22:49:42 +03:00
|
|
|
description = "Maxima computer algebra system";
|
2010-08-26 15:44:43 +04:00
|
|
|
homepage = "http://maxima.sourceforge.net";
|
2010-08-26 21:57:14 +04:00
|
|
|
license = "GPLv2";
|
2010-08-26 15:44:43 +04: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 15:49:54 +04:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-05-09 20:01:44 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2007-09-26 04:19:26 +04:00
|
|
|
};
|
|
|
|
}
|