3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/wxmaxima/default.nix

36 lines
913 B
Nix
Raw Normal View History

{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
let
name = "wxmaxima";
2015-05-13 11:17:01 +01:00
version = "15.04.0";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxmaxima-${version}.tar.gz";
2015-05-13 11:17:01 +01:00
sha256 = "1fm47ah4aw5qdjqhkz67w5fwhy8yfffa5z896crp0d3hk2bh4180";
};
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 = stdenv.lib.licenses.gpl2;
homepage = http://wxmaxima.sourceforge.net;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ];
};
}