Skip to content

Commit

Permalink
wxmaxima: 15.04.0 -> 17.10.1
Browse files Browse the repository at this point in the history
also fix crash at start-up due missing icons

fixes #18479

(cherry picked from commit 2142352)
  • Loading branch information
Mic92 authored and peti committed Nov 15, 2017
1 parent b3b1f2e commit a5f90be
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions pkgs/applications/science/math/wxmaxima/default.nix
@@ -1,35 +1,35 @@
{ stdenv, fetchurl, maxima, wxGTK, makeWrapper }:

let
name = "wxmaxima";
version = "15.04.0";
in
stdenv.mkDerivation {
name = "${name}-${version}";

src = fetchurl {
url = "mirror://sourceforge/${name}/wxMaxima/${version}/wxmaxima-${version}.tar.gz";
sha256 = "1fm47ah4aw5qdjqhkz67w5fwhy8yfffa5z896crp0d3hk2bh4180";
{ stdenv, fetchFromGitHub
, wrapGAppsHook, autoreconfHook, gettext
, maxima, wxGTK, gnome3 }:

stdenv.mkDerivation rec {
name = "wxmaxima-${version}";
version = "17.10.1";

src = fetchFromGitHub {
owner = "andrejv";
repo = "wxmaxima";
rev = "Version-${version}";
sha256 = "088h8dlc9chkppwl4ck9i0fgf2d1dcpi5kq8qbpr5w75vhwsb6qm";
};

buildInputs = [wxGTK maxima makeWrapper];
buildInputs = [ wxGTK maxima gnome3.defaultIconTheme ];

nativeBuildInputs = [ wrapGAppsHook autoreconfHook gettext ];

postInstall = ''
# Make sure that wxmaxima can find its runtime dependencies.
for prog in "$out/bin/"*; do
wrapProgram "$prog" --prefix PATH ":" "${maxima}/bin"
done
preConfigure = ''
gappsWrapperArgs+=(--prefix PATH ":" ${maxima}/bin)
'';

doCheck = true;

enableParallelBuilding = true;

meta = {
meta = with stdenv.lib; {
description = "Cross platform GUI for the computer algebra system Maxima";
license = stdenv.lib.licenses.gpl2;
license = licenses.gpl2;
homepage = http://wxmaxima.sourceforge.net;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.peti ];
platforms = platforms.linux;
maintainers = [ maintainers.peti ];
};
}

0 comments on commit a5f90be

Please sign in to comment.