about summary refs log tree commit diff
path: root/pkgs/applications/science/math/wxmaxima/default.nix
blob: 6c866a8d21640a4a5b29ec5cdc2a4211d8f706c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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 gnome3.defaultIconTheme ];

  nativeBuildInputs = [ wrapGAppsHook autoreconfHook gettext ];

  preConfigure = ''
    gappsWrapperArgs+=(--prefix PATH ":" ${maxima}/bin)
  '';

  doCheck = true;

  enableParallelBuilding = true;

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