From 31f3bcffd391afd8253d6cc7838de501f2fe5201 Mon Sep 17 00:00:00 2001 From: Sughosha Date: Tue, 7 Oct 2025 03:45:21 +0530 Subject: [PATCH] gnu: kalgebra: Move to kde-education.scm. * gnu/packages/kde.scm (kalgebra): Remove variable. * gnu/packages/kde-education.scm (kalgebra): New variable. Change-Id: If28ed85d5e4843beb54136da197420d6cf5507bd --- gnu/packages/kde-education.scm | 58 +++++++++++++++++++++++++++++++++- gnu/packages/kde.scm | 56 -------------------------------- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/gnu/packages/kde-education.scm b/gnu/packages/kde-education.scm index 01df1aa563cfad45bfa5d8c218c8c2e761da5275..cd0f36b23370292a04ecdb3cb07650089ca3f0b1 100644 --- a/gnu/packages/kde-education.scm +++ b/gnu/packages/kde-education.scm @@ -27,7 +27,10 @@ #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages kde-frameworks) - #:use-module (gnu packages qt)) + #:use-module (gnu packages kde-plasma) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages qt) + #:use-module (gnu packages readline)) (define-public analitza (package @@ -52,3 +55,56 @@ It adds mathematical features to your program, such as symbolic computations and some numerical methods; for instance the library can parse mathematical expressions and let you evaluate and draw them.") (license license:gpl2+))) + +(define-public kalgebra + (package + (name "kalgebra") + (version "24.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://invent.kde.org/education/kalgebra") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g4rrq3csp0w6xhc5cbbilz7xhhq9zdngc8bc9d16p02xz61qd4i")))) + (build-system qt-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-qt-process-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((bin (string-append #$output "/bin/kalgebra")) + (qt-process-path + (search-input-file + inputs "/lib/qt6/libexec/QtWebEngineProcess"))) + (wrap-program bin + `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path))))))))) + (native-inputs + (list extra-cmake-modules qttools)) + (inputs + (list analitza + kconfigwidgets + kcoreaddons + kdoctools + ki18n + kio + kwidgetsaddons + kxmlgui + libplasma + ncurses + qtbase + qtdeclarative + qtsvg + qtwebengine + qtwebchannel + readline)) + (home-page "https://invent.kde.org/education/kalgebra") + (synopsis "Calculator and plotting tool") + (description "KAlgebra is a calculator that lets you plot different types +of 2D and 3D functions and to calculate easy (and not so easy) calculations, +such as addition, trigonometric functions or derivatives.") + (license license:gpl2+))) diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm index a56b9fa9d418d5d5e6285d2fc8f456bb1b2cd005..1d2812c328baaa053769b0402ad7cd9e05d34c1d 100644 --- a/gnu/packages/kde.scm +++ b/gnu/packages/kde.scm @@ -72,7 +72,6 @@ #:use-module (gnu packages gps) #:use-module (gnu packages graphics) #:use-module (gnu packages image) - #:use-module (gnu packages kde-education) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages kde-graphics) #:use-module (gnu packages kde-pim) @@ -80,7 +79,6 @@ ;; Including this module breaks the build. ;#:use-module ((gnu packages kde-systemtools) #:select (dolphin)) #:use-module (gnu packages maths) - #:use-module (gnu packages ncurses) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -88,7 +86,6 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) - #:use-module (gnu packages readline) #:use-module (gnu packages scanner) #:use-module (gnu packages tls) #:use-module (gnu packages video) @@ -144,59 +141,6 @@ This package contains GUI widgets for baloo.") (description "This package provides a non-blocking Qt database framework.") (license license:lgpl2.1+))) -(define-public kalgebra - (package - (name "kalgebra") - (version "24.12.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://invent.kde.org/education/kalgebra") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0g4rrq3csp0w6xhc5cbbilz7xhhq9zdngc8bc9d16p02xz61qd4i")))) - (build-system qt-build-system) - (arguments - (list - #:tests? #f - #:phases - #~(modify-phases %standard-phases - (add-after 'install 'wrap-qt-process-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((bin (string-append #$output "/bin/kalgebra")) - (qt-process-path - (search-input-file - inputs "/lib/qt6/libexec/QtWebEngineProcess"))) - (wrap-program bin - `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path))))))))) - (native-inputs - (list extra-cmake-modules qttools)) - (inputs - (list analitza - kconfigwidgets - kcoreaddons - kdoctools - ki18n - kio - kwidgetsaddons - kxmlgui - libplasma - ncurses - qtbase - qtdeclarative - qtsvg - qtwebengine - qtwebchannel - readline)) - (home-page "https://invent.kde.org/education/kalgebra") - (synopsis "Calculator and plotting tool") - (description "KAlgebra is a calculator that lets you plot different types -of 2D and 3D functions and to calculate easy (and not so easy) calculations, -such as addition, trigonometric functions or derivatives.") - (license license:gpl2+))) - (define-public kdsoap-ws-discovery-client (package (name "kdsoap-ws-discovery-client")