7c8871512d
svn path=/nixpkgs/trunk/; revision=27745
36 lines
877 B
Nix
36 lines
877 B
Nix
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
|
|
|
|
let
|
|
name = "wxmaxima";
|
|
version = "11.04.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "${name}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${name}/wxMaxima-${version}.tar.gz";
|
|
sha256 = "1dfwh5ka125wr6wxzyiwz16lk8kaf09rb6lldzryjwh8zi7yw8dm";
|
|
};
|
|
|
|
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;
|
|
|
|
meta = {
|
|
description = "Cross platform GUI for the computer algebra system Maxima.";
|
|
license = "GPL2";
|
|
homepage = http://wxmaxima.sourceforge.net;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|