From 51747b31c65d6ba5e2d6b1ca28f6b1ab8542a080 Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Fri, 3 May 2024 16:37:24 +0800 Subject: [PATCH] gnu: Add kglobalacceld. * gnu/packages/kde-plasma.scm (kglobalacceld): New variable. Change-Id: I1db889a1b0e59634adf776527ea9bacec5d526ae --- gnu/packages/kde-plasma.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index e0c68e7b37..cd27917c2c 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -579,6 +579,51 @@ (define-public kgamma (home-page "https://invent.kde.org/plasma/kgamma5") (license license:gpl2+))) +(define-public kglobalacceld + (package + (name "kglobalacceld") + (version "6.1.2") + (source (origin + (method url-fetch) + (uri (string-append "mirror://kde/stable/plasma/" + version "/" name "-" + version ".tar.xz")) + (sha256 + (base32 + "1p38lqiw9r1w6grp5847pm9lh27d765in62fnc2vlrkb99krxcr7")))) + (build-system qt-build-system) + (arguments (list #:qtbase qtbase + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'setenv + (lambda _ + (setenv "HOME" (getcwd)))) + (replace 'check + (lambda* (#:key tests? parallel-tests? #:allow-other-keys) + (invoke "dbus-launch" "ctest" "-j" + (if parallel-tests? + (number->string (parallel-job-count)) + "1"))))))) + (native-inputs (list extra-cmake-modules dbus)) + (inputs (list kconfig + kcoreaddons + kcrash + kdbusaddons + kwindowsystem + kglobalaccel + kservice + kio + kjobwidgets + xcb-util-keysyms + libxkbcommon)) + (synopsis "Daemon providing Global Keyboard Shortcut (Accelerator) +functionality") + (description + "This package provides a Daemon providing Global Keyboard Shortcut +(Accelerator) functionality.") + (home-page "https://invent.kde.org/plasma/kglobalacceld") + (license license:gpl2+))) + (define-public khotkeys (package (name "khotkeys")