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