2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, maxima
|
|
|
|
, wxGTK
|
|
|
|
, gnome
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxmaxima";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "22.03.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wxMaxima-developers";
|
|
|
|
repo = "wxmaxima";
|
|
|
|
rev = "Version-${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-ynLx1HPfDjLbyFziWFbjpCeUBaA3hAFRFm5/1GeFKRE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK
|
|
|
|
maxima
|
|
|
|
# So it won't embed svg files into headers.
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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/";
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|