2011-07-13 11:56:58 +02:00
|
|
|
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
|
2009-10-29 13:53:22 +01:00
|
|
|
|
2009-10-29 12:57:58 +01:00
|
|
|
let
|
2011-05-06 09:35:22 +02:00
|
|
|
name = "wxmaxima";
|
2013-10-13 00:39:06 +02:00
|
|
|
version = "13.04.2";
|
2009-10-29 12:57:58 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-22 11:21:55 +02:00
|
|
|
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxMaxima-${version}.tar.gz";
|
2013-10-13 00:39:06 +02:00
|
|
|
sha256 = "1sylvr0kfdzxxc3qsb0c6ff3lg0bzm1ib5xh78wjgzykbnvjsd99";
|
2009-10-29 12:57:58 +01:00
|
|
|
};
|
|
|
|
|
2011-07-13 11:56:58 +02: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 12:57:58 +01:00
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Cross platform GUI for the computer algebra system Maxima";
|
2010-08-26 13:53:17 +02:00
|
|
|
license = "GPL2";
|
2009-10-29 12:57:58 +01:00
|
|
|
homepage = http://wxmaxima.sourceforge.net;
|
2013-03-22 12:53:07 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-08-26 13:53:17 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-10-29 12:57:58 +01:00
|
|
|
};
|
|
|
|
}
|