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";
|
2014-12-22 09:53:54 +00:00
|
|
|
version = "14.12.1";
|
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";
|
2014-12-22 09:53:54 +00:00
|
|
|
sha256 = "0sjxvh0y5w5p2xdq3qzz3yhlsigrg3ynib9dkymhynpfnb51x82z";
|
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;
|
2010-08-26 12:53:17 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
}
|