2011-07-13 10:56:58 +01:00
|
|
|
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
|
2009-10-29 12:53:22 +00:00
|
|
|
|
2009-10-29 11:57:58 +00:00
|
|
|
let
|
2011-05-06 08:35:22 +01:00
|
|
|
name = "wxmaxima";
|
2015-05-13 11:17:01 +01:00
|
|
|
version = "15.04.0";
|
2009-10-29 11:57:58 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-06 00:43:38 +00:00
|
|
|
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxmaxima-${version}.tar.gz";
|
2015-05-13 11:17:01 +01:00
|
|
|
sha256 = "1fm47ah4aw5qdjqhkz67w5fwhy8yfffa5z896crp0d3hk2bh4180";
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
|
2011-07-13 10:56:58 +01:00
|
|
|
buildInputs = [wxGTK maxima makeWrapper];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Make sure that wxmaxima can find its runtime dependencies.
|
|
|
|
for prog in "$out/bin/"*; do
|
|
|
|
wrapProgram "$prog" --prefix PATH ":" "${maxima}/bin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-10-29 11:57:58 +00:00
|
|
|
|
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Cross platform GUI for the computer algebra system Maxima";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-10-29 11:57:58 +00:00
|
|
|
homepage = http://wxmaxima.sourceforge.net;
|
2013-03-22 11:53:07 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
}
|