From b7038ffbdf075bcddf944b38b7d6a06f8d1426bd Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Fri, 26 Aug 2022 07:50:23 +0200 Subject: [PATCH 12/81] gnu: Add kwayland-integration. * gnu/packages/kde-plasma.scm (kwayland-integration): New variable. diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index 7e0cdf899f..b996cf27cc 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -23,6 +23,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages kde-plasma) + #:use-module (guix build utils) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) @@ -386,3 +387,53 @@ (define-public kwayland-server ;; src/server/drm_fourcc.h carries the MIT license. license:expat)))) +(define-public kwayland-integration + (package + (name "kwayland-integration") + (version "5.25.4") + (source (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/plasma/" + version + "/" + name + "-" + version + ".tar.xz")) + (sha256 + (base32 + "1iqnwcp08kg91pwm3i4grd0i4bqf8h1z0n0fhcw6l0cbhdkcad39")))) + (build-system qt-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check-after-install + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" + (getcwd)) + (setenv "XDG_RUNTIME_DIR" + (getcwd)) + (setenv "QT_QPA_PLATFORM" "offscreen") + ;; https://bugs.gentoo.org/668872 + (invoke "ctest" "-E" "(idleTest-kwayland-test)")))) + (add-before 'check-after-install 'check-setup + (lambda* (#:key outputs #:allow-other-keys) + (setenv "QT_PLUGIN_PATH" + (string-append #$output + "/lib/qt5/plugins:" + (getenv "QT_PLUGIN_PATH")))))))) + (native-inputs (list extra-cmake-modules wayland-protocols pkg-config)) + (inputs (list kguiaddons + kidletime + kwindowsystem + kwayland + libxkbcommon + wayland + qtbase-5 + qtwayland)) + (synopsis "KWayland runtime integration plugins") + (description "Provides integration plugins for various KDE Frameworks for +Wayland.") + (home-page "https://invent.kde.org/plasma/kwayland-integration") + (license (list license:lgpl2.1 license:lgpl3)))) -- 2.37.2