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";
|
2014-12-22 10:53:54 +01:00
|
|
|
version = "14.12.1";
|
2009-10-29 12:57:58 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-06 01:43:38 +01:00
|
|
|
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxmaxima-${version}.tar.gz";
|
2014-12-22 10:53:54 +01:00
|
|
|
sha256 = "0sjxvh0y5w5p2xdq3qzz3yhlsigrg3ynib9dkymhynpfnb51x82z";
|
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";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.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
|
|
|
};
|
|
|
|
}
|