mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
36 lines
915 B
Nix
36 lines
915 B
Nix
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:
|
|
|
|
let
|
|
name = "wxmaxima";
|
|
version = "14.09.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "${name}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxmaxima-${version}.tar.gz";
|
|
sha256 = "1wqiw9dgjc9vg94dqk4kif8xs7nlmn34xj3v4zm13fh1jihraksq";
|
|
};
|
|
|
|
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.simons ];
|
|
};
|
|
}
|