From c6d24b87bd2658ef894a356877423a318346507d Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sun, 3 Oct 2021 13:42:31 +1100 Subject: [PATCH v3 63/86] gnu: Add kwayland-server. * gnu/packages/kde-plasma.scm (kwayland-server): New variable. diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index e190d6c50d..74147c7a50 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -336,3 +336,52 @@ (define-public libksysguard manage running processes. It obtains this information by interacting with a ksysguardd daemon, which may also run on a remote system.") (license license:gpl3+))) + +(define-public kwayland-server + (package + (name "kwayland-server") + (version "5.24.4") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://kde/stable/plasma/" version + "/" name "-" version ".tar.xz")) + (sha256 + (base32 + "1279nqhy1qyz84dkn23rvzak8bg71hbrp09jlhv9mkjdb3bhnyfi")))) + (build-system qt-build-system) + (native-inputs + (list extra-cmake-modules pkg-config)) + (inputs + (list plasma-wayland-protocols + qtbase-5 + qtwayland + kwayland + wayland + wayland-protocols-next)) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-install-path + (lambda _ + ;; Fixes errors including nonexistant /include/KF5 + (substitute* "src/server/CMakeLists.txt" + (("KF5_INSTALL") "KDE_INSTALL")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" (getcwd)) + (setenv "XDG_RUNTIME_DIR" (getcwd)) + (setenv "QT_QPA_PLATFORM" "offscreen") + (invoke "ctest" "-E" ;; Test fails inconsistently. + "kwayland-testDragAndDrop")) + #t))))) + (home-page "https://api.kde.org/kwayland-server/html/index.html") + (synopsis "KDE wayland server component") + (description "KWayland is a Qt-style API to interact with the wayland-client and +wayland-server API.") + (license (list license:lgpl2.1 + license:lgpl2.1+ + license:lgpl3 + license:expat + license:bsd-3)))) -- 2.37.0