2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, maxima
|
|
|
|
, wxGTK
|
|
|
|
, gnome
|
2023-01-20 10:41:00 +00:00
|
|
|
, glib
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxmaxima";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "23.02.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wxMaxima-developers";
|
|
|
|
repo = "wxmaxima";
|
|
|
|
rev = "Version-${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-Lrj/oJNmKlCkNbnCGY2TewCospwajKdWgmKkreHzEIU=";
|
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
|
2023-01-20 10:41:00 +00:00
|
|
|
# So it won't crash under Sway.
|
|
|
|
glib
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
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
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|