2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook, cmake, gettext
|
2021-05-20 23:08:51 +00:00
|
|
|
, maxima, wxGTK, gnome }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxmaxima";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "21.02.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wxMaxima-developers";
|
|
|
|
repo = "wxmaxima";
|
|
|
|
rev = "Version-${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-5nvaaKsvSEs7QxOszjDK1Xkana2er1BCMZ83b1JZSqc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ wxGTK maxima gnome.adwaita-icon-theme ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook cmake gettext ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PATH ":" ${maxima}/bin)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross platform GUI for the computer algebra system Maxima";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "https://wxmaxima-developers.github.io/wxmaxima/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.peti ];
|
|
|
|
};
|
|
|
|
}
|