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";
|
2013-10-12 23:39:06 +01:00
|
|
|
version = "13.04.2";
|
2009-10-29 11:57:58 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-22 10:21:55 +01:00
|
|
|
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxMaxima-${version}.tar.gz";
|
2013-10-12 23:39:06 +01:00
|
|
|
sha256 = "1sylvr0kfdzxxc3qsb0c6ff3lg0bzm1ib5xh78wjgzykbnvjsd99";
|
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";
|
2010-08-26 12:53:17 +01:00
|
|
|
license = "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;
|
2010-08-26 12:53:17 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
}
|