2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2021-12-06 16:07:01 +00:00
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, maxima
|
|
|
|
, wxGTK
|
2024-07-27 06:49:29 +00:00
|
|
|
, adwaita-icon-theme
|
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
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs:{
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "wxmaxima";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "24.08.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wxMaxima-developers";
|
|
|
|
repo = "wxmaxima";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "Version-${finalAttrs.version}";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-W9sZlCPi+pz37OQoICnRGQR2hoe/UciMN6NIzDgHNPQ=";
|
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.
|
2024-07-27 06:49:29 +00:00
|
|
|
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 = [
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-12-06 16:07:01 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wxmaxima";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|