From 3ce6ca6a35dd7fa5b197d660fc4bfa621ac6071d Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sat, 24 Oct 2020 19:50:39 +0200 Subject: gnu: Add kwayland-server. * gnu/packages/kde-plasma.scm (kwayland-server): New variable. --- gnu/packages/kde-plasma.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index f1250bc73e..ea3e864ec3 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -295,6 +295,47 @@ NetBSD, OpenBSD, Solaris and Tru64 with varying degrees of completion.") Wayland") (license license:lgpl3+))) ; KDE e.V. +(define-public kwayland-server + (package + (name "kwayland-server") + (version "5.19.5") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/plasma/" version + "/kwayland-server-" version ".tar.xz")) + (sha256 + (base32 "06jlr24f3vhla8rjyygd7r51byksfv46apnh3bylslgxd2grrzah")))) + (build-system qt-build-system) + (arguments + `(#:tests? #f ;; TODO: seem to require a running wayland server + #:phases + (modify-phases %standard-phases + (add-after 'install 'workaround-https://bugs.kde.org/428295 + (lambda _ + (mkdir-p (string-append %output "/include/KF5"))))))) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules) + ("pkg-config" ,pkg-config) + ("qtwayland" ,qtwayland) + ("wayland" ,wayland))) ;; required for the tests + (inputs + `(("kwayland" ,kwayland) + ("kwindowsystem" ,kwindowsystem) + ("plasma-wayland-protocols" ,plasma-wayland-protocols) + ("qtbase" ,qtbase) + ("wayland-protocols" ,wayland-protocols))) + (home-page "https://invent.kde.org/plasma/kwayland-server") + (synopsis "Wayland Server Components built on KDE Frameworks") + (description "This package provides two libraries: KWayland::Client and +KWaylandServer. As the names suggest they implement a Client respectively a +Server API for the Wayland protocol. The API is Qt-styled removing the needs +to interact with a for a Qt developer uncomfortable low-level C-API. For +example the callback mechanism from the Wayland API is replaced by signals; +data types are adjusted to be what a Qt developer expects, e.g. two arguments +of int are represented by a QPoint or a QSize.") + (license license:lgpl2.1))) ; KDE e.V. + (define-public libkscreen (package (name "libkscreen") -- cgit 1.4.1