2021-11-29 09:16:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, maxima
|
|
|
|
, wxGTK
|
|
|
|
, gnome
|
2023-01-14 19:02:56 +00:00
|
|
|
, glib
|
2021-11-29 09:16:47 +00:00
|
|
|
}:
|
2017-11-14 11:25:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wxmaxima";
|
2023-03-02 13:11:08 +00:00
|
|
|
version = "23.02.1";
|
2017-11-14 11:25:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-11 16:07:53 +00:00
|
|
|
owner = "wxMaxima-developers";
|
2017-11-14 11:25:48 +00:00
|
|
|
repo = "wxmaxima";
|
|
|
|
rev = "Version-${version}";
|
2023-03-02 13:11:08 +00:00
|
|
|
sha256 = "sha256-Lrj/oJNmKlCkNbnCGY2TewCospwajKdWgmKkreHzEIU=";
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
|
2021-11-29 09:16:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
wxGTK
|
|
|
|
maxima
|
|
|
|
# So it won't embed svg files into headers.
|
|
|
|
gnome.adwaita-icon-theme
|
2023-01-14 19:02:56 +00:00
|
|
|
# So it won't crash under Sway.
|
|
|
|
glib
|
2021-11-29 09:16:47 +00:00
|
|
|
];
|
2017-11-14 11:25:48 +00:00
|
|
|
|
2021-11-29 09:16:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
];
|
2011-07-13 09:56:58 +00:00
|
|
|
|
2023-01-14 19:02:56 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
|
|
|
];
|
|
|
|
|
2017-11-14 11:25:48 +00:00
|
|
|
preConfigure = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PATH ":" ${maxima}/bin)
|
2011-07-13 09:56:58 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Cross platform GUI for the computer algebra system Maxima";
|
2017-11-14 11:25:48 +00:00
|
|
|
license = licenses.gpl2;
|
2020-03-11 16:07:53 +00:00
|
|
|
homepage = "https://wxmaxima-developers.github.io/wxmaxima/";
|
2021-11-29 09:16:47 +00:00
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2017-11-14 11:25:48 +00:00
|
|
|
platforms = platforms.linux;
|
2009-10-29 11:57:58 +00:00
|
|
|
};
|
|
|
|
}
|