projects/guix·blob java-team · refs

3358 lines · 123.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Thomas Danckaert <[email protected]>
3;;; Copyright © 2018 Meiyo Peng <[email protected]>
4;;; Copyright © 2019 Marius Bakke <[email protected]>
5;;; Copyright © 2017, 2019, 2020 Hartmut Goebel <[email protected]>
6;;; Copyright © 2019 Tobias Geerinckx-Rice <[email protected]>
7;;; Copyright © 2020, 2023-2025 Zheng Junjie <[email protected]>
8;;; Copyright © 2022 Brendan Tildesley <[email protected]>
9;;; Copyright © 2022 Petr Hodina <[email protected]>
10;;; Copyright © 2023, 2025, 2026 Sughosha <[email protected]>
11;;; Copyright © 2024 Raven Hallsby <[email protected]>
12;;; Copyright © 2025 Maxim Cournoyer <[email protected]>
13;;;
14;;; This file is part of GNU Guix.
15;;;
16;;; GNU Guix is free software; you can redistribute it and/or modify it
17;;; under the terms of the GNU General Public License as published by
18;;; the Free Software Foundation; either version 3 of the License, or (at
19;;; your option) any later version.
20;;;
21;;; GNU Guix is distributed in the hope that it will be useful, but
22;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24;;; GNU General Public License for more details.
25;;;
26;;; You should have received a copy of the GNU General Public License
27;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28
29(define-module (gnu packages kde-plasma)
30 #:use-module (guix packages)
31 #:use-module (guix download)
32 #:use-module (guix git-download)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix gexp)
35 #:use-module (guix utils)
36 #:use-module (guix build-system cmake)
37 #:use-module (guix build-system trivial)
38 #:use-module (guix build-system qt)
39 #:use-module (gnu packages)
40 #:use-module (gnu packages admin)
41 #:use-module (gnu packages bash)
42 #:use-module (gnu packages boost)
43 #:use-module (gnu packages authentication)
44 #:use-module (gnu packages bash)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages crypto)
47 #:use-module (gnu packages cups)
48 #:use-module (gnu packages display-managers)
49 #:use-module (gnu packages file-systems)
50 #:use-module (gnu packages firmware)
51 #:use-module (gnu packages fonts)
52 #:use-module (gnu packages fontutils)
53 #:use-module (gnu packages freedesktop)
54 #:use-module (gnu packages gcc)
55 #:use-module (gnu packages gettext)
56 #:use-module (gnu packages ghostscript)
57 #:use-module (gnu packages gnupg)
58 #:use-module (gnu packages gl)
59 #:use-module (gnu packages glib)
60 #:use-module (gnu packages gnome)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages hardware)
63 #:use-module (gnu packages ibus)
64 #:use-module (gnu packages icu4c)
65 #:use-module (gnu packages image-processing)
66 #:use-module (gnu packages iso-codes)
67 #:use-module (gnu packages kde-graphics)
68 #:use-module (gnu packages kde-frameworks)
69 #:use-module (gnu packages kde-internet)
70 #:use-module (gnu packages kde-multimedia)
71 #:use-module (gnu packages kde-pim)
72 ;; Including this module breaks the build
73 ;#:use-module ((gnu packages kde-systemtools) #:select (konsole))
74 #:use-module (gnu packages libcanberra)
75 #:use-module (gnu packages linux)
76 #:use-module (gnu packages libusb)
77 #:use-module (gnu packages lsof)
78 #:use-module (gnu packages networking)
79 #:use-module (gnu packages markup)
80 #:use-module (gnu packages maths)
81 #:use-module (gnu packages messaging)
82 #:use-module (gnu packages multiprecision)
83 #:use-module (gnu packages pciutils)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages polkit)
86 #:use-module (gnu packages pulseaudio)
87 #:use-module (gnu packages python)
88 #:use-module (gnu packages package-management) ; flatpak
89 #:use-module (gnu packages rdesktop)
90 #:use-module (gnu packages sdl)
91 #:use-module (gnu packages unicode)
92 #:use-module (gnu packages video)
93 #:use-module (gnu packages vpn)
94 #:use-module (gnu packages vulkan)
95 #:use-module (gnu packages window-management)
96 #:use-module (gnu packages textutils)
97 #:use-module (gnu packages qt)
98 #:use-module (gnu packages xdisorg)
99 #:use-module (gnu packages xml)
100 #:use-module (gnu packages xorg)
101 #:use-module (gnu packages base)
102 #:use-module (gnu packages gps)
103 #:use-module (gnu packages web)
104 #:use-module (gnu packages tls)
105 #:use-module (gnu packages xml)
106 #:use-module (gnu packages opencl))
107
108(define-public libplasma
109 (package
110 (name "libplasma")
111 (version "6.5.5")
112 (source (origin
113 (method url-fetch)
114 (uri (string-append "mirror://kde/stable/plasma/"
115 version "/" name "-"
116 version ".tar.xz"))
117 (sha256
118 (base32
119 "06m7p25860ka49yqrm8f1a0z6ykyyfh8zkch496hzfch1yyzk23x"))))
120 (build-system qt-build-system)
121 (propagated-inputs
122 (list kconfig ;PlasmaConfig.cmake
123 kirigami ;QML module dependency
124 kpackage ;PlasmaConfig.cmake
125 ksvg ;QML module dependency
126 kwindowsystem ;PlasmaConfig.cmake
127 qt5compat ;QML module dependency
128 qtdeclarative)) ;PlasmaConfig.cmake and PlasmaQuickConfig.cmake
129 (native-inputs
130 (list extra-cmake-modules kdoctools pkg-config
131 gettext-minimal
132 ;; for wayland-scanner
133 wayland))
134 (inputs (list
135 karchive
136 kconfigwidgets
137 kglobalaccel
138 kguiaddons
139 kiconthemes
140 kio
141 ki18n
142 kglobalaccel
143 knotifications
144 plasma-wayland-protocols
145 plasma-activities
146 qtsvg
147 qtwayland
148 wayland
149 libxkbcommon))
150 (arguments
151 (list #:qtbase qtbase
152 #:test-exclude
153 (string-append "("
154 (string-join '("plasma-dialogstatetest"
155 "plasma-iconitemtest"
156 "plasma-dialogqmltest"
157 "plasma-themetest"
158 "iconitemhidpitest"
159 "bug485688test"
160 "dialognativetest")
161 "|")
162 ")")
163 #:phases
164 #~(modify-phases %standard-phases
165 (add-before 'check 'check-setup
166 (lambda* (#:key tests? #:allow-other-keys)
167 (when tests?
168 (setenv "HOME" (getcwd))))))))
169 (home-page "https://invent.kde.org/plasma/libplasma")
170 (synopsis "Libraries, components and tools of Plasma workspaces")
171 (description "The plasma framework provides QML components, libplasma and
172script engines.")
173 ;; dual licensed
174 (license (list license:gpl2+ license:lgpl2.1+))))
175
176(define-public aurorae
177 (package
178 (name "aurorae")
179 (version "6.5.5")
180 (source (origin
181 (method url-fetch)
182 (uri (string-append "mirror://kde/stable/plasma/" version "/"
183 name "-" version ".tar.xz"))
184 (sha256
185 (base32
186 "14ihqw2j8jwriqsmnvw3kgk0abdyywihvwfl68dx8vh47zfixl58"))))
187 (build-system qt-build-system)
188 (arguments
189 (list #:qtbase qtbase
190 #:tests? #f))
191 ;; These packages are required by the QML modules.
192 (propagated-inputs
193 (list kirigami
194 ksvg
195 qtdeclarative))
196 (native-inputs
197 (list extra-cmake-modules qttools))
198 (inputs
199 (list kcmutils
200 kcolorscheme
201 kconfig
202 kdecoration
203 ki18n
204 knewstuff
205 kpackage))
206 (synopsis "Themeable window decoration for KWin")
207 (description
208 "Aurorae is a themeable window decoration for KWin. It supports theme
209files consisting of several SVG files for decoration and buttons. Themes can
210be installed and selected directly in the configuration module of KWin
211decorations.")
212 (home-page "https://invent.kde.org/plasma/aurorae")
213 (license license:gpl2+)))
214
215(define-public bluedevil
216 (package
217 (name "bluedevil")
218 (version "6.5.5")
219 (source (origin
220 (method url-fetch)
221 (uri (string-append "mirror://kde/stable/plasma/" version "/"
222 name "-" version ".tar.xz"))
223 (sha256
224 (base32
225 "1dndb6zcsk2qsqj4cpnw6z6zvyj4nrnd076mgxl4rvs20k6lpcyj"))))
226 (build-system qt-build-system)
227 (arguments (list #:qtbase qtbase
228 #:tests? #f))
229 (native-inputs (list extra-cmake-modules pkg-config qttools))
230 (inputs (list kcoreaddons
231 kcmutils
232 kirigami
233 kwidgetsaddons
234 kdbusaddons
235 kjobwidgets
236 ksvg
237 knotifications
238 kwindowsystem
239 libplasma
240 ki18n
241 kio
242 kdeclarative
243 shared-mime-info
244 qtdeclarative))
245 (propagated-inputs
246 (list bluez-qt))
247 (synopsis "Manage the Bluetooth settings from Plasma")
248 (description
249 "This package provides Bluetooth manager for Plasma Shell.")
250 (home-page "https://invent.kde.org/plasma/bluedevil")
251 (license (list license:lgpl2.1 license:lgpl3))))
252
253(define-public breeze
254 (package
255 (name "breeze")
256 (version "6.5.5")
257 (source (origin
258 (method url-fetch)
259 (uri (string-append "mirror://kde/stable/plasma/" version "/"
260 name "-" version ".tar.xz"))
261 (sha256
262 (base32
263 "14557bmdvdp00ppri4s8i2pg441m40mz0ql484fbki464fyzgcq9"))))
264 (build-system qt-build-system)
265 ;; TODO: Check whether is makes sence splitting into several outputs.
266 (native-inputs
267 (list extra-cmake-modules pkg-config))
268 (inputs
269 (list kcmutils ; optional
270 kconfigwidgets
271 kcoreaddons
272 kde-frameworkintegration ; optional
273 kdecoration
274 kguiaddons
275 ki18n
276 kirigami
277 kiconthemes
278 kpackage
279 kwindowsystem
280 kcolorscheme
281 qtsvg))
282 (arguments (list #:qtbase qtbase
283 #:tests? #f
284 #:configure-flags #~(list "-DBUILD_QT5=OFF")))
285 (home-page "https://invent.kde.org/plasma/breeze")
286 (synopsis "Default KDE Plasma theme")
287 (description "Artwork, styles and assets for the Breeze visual style for
288the Plasma Desktop. Breeze is the default theme for the KDE Plasma desktop.")
289 (license license:gpl2+)))
290
291(define-public breeze-gtk
292 (package
293 (name "breeze-gtk")
294 (version "6.5.5")
295 (source (origin
296 (method url-fetch)
297 (uri (string-append "mirror://kde/stable/plasma/"
298 version "/" name
299 "-" version ".tar.xz"))
300 (sha256
301 (base32
302 "10fjaimhk15dq2l213hj7z67m6q837b2g18iwqa8q5mviw5lxnim"))))
303 (build-system qt-build-system)
304 (arguments
305 (list
306 #:qtbase qtbase
307 #:tests? #f)) ;no 'test' target
308 (native-inputs (list breeze extra-cmake-modules sassc python
309 python-pycairo))
310 (home-page "https://invent.kde.org/plasma/breeze")
311 (synopsis "Default KDE Plasma theme (GTK+ port)")
312 (description "GTK+ port of the Breeze visual style for the Plasma Desktop.
313Breeze is the default theme for the KDE Plasma desktop.")
314 (license (list license:bsd-3 ;cmake/FindSass.cmake
315 license:lgpl2.1+)))) ;<all other files>
316
317(define-public calindori
318 (package
319 (name "calindori")
320 (version "25.12.3")
321 (source (origin
322 (method url-fetch)
323 (uri (string-append "mirror://kde/stable/release-service/" version
324 "/src/calindori-" version ".tar.xz"))
325 (sha256
326 (base32
327 "1rp7dqvcpcgfvxvw8r1azz9az10bh22blb6a7nx6k9gmpgm8rrrj"))))
328 (build-system qt-build-system)
329 (native-inputs (list extra-cmake-modules python-minimal))
330 (inputs (list kconfig
331 kcoreaddons
332 kdbusaddons
333 ki18n
334 kirigami
335 kcalendarcore
336 knotifications
337 kpeople
338 qtdeclarative
339 qtsvg
340 qtwayland))
341 (arguments (list #:qtbase qtbase
342 #:tests? #f))
343 (home-page "https://invent.kde.org/plasma-mobile/calindori")
344 (synopsis "Calendar for Plasma Mobile")
345 (description
346 "This package provides a touch friendly calendar application.")
347 (license license:gpl3+)))
348
349(define-public discover
350 (package
351 (name "discover")
352 (version "6.5.5")
353 (source (origin
354 (method url-fetch)
355 (uri (string-append "mirror://kde/stable/plasma/"
356 version
357 "/"
358 name
359 "-"
360 version
361 ".tar.xz"))
362 (sha256
363 (base32
364 "0d4nd5rwzyyhsk5mphkrscarkxhsbigrcx7kn8anqwabhlnxs0j2"))))
365 (build-system qt-build-system)
366 (arguments
367 (list #:qtbase qtbase
368 #:test-exclude "flatpaktest"
369 #:phases
370 #~(modify-phases %standard-phases
371 (add-after 'unpack 'remove-qmlmodule-required
372 (lambda _
373 (substitute* "CMakeLists.txt"
374 (("1.0 REQUIRED")
375 "1.0"))))
376 (add-before 'configure 'set-LDFLAGS
377 (lambda _
378 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" #$output
379 "/lib/plasma-discover"))))
380 (add-before 'check 'check-setup
381 (lambda* (#:key tests? #:allow-other-keys)
382 (when tests?
383 (setenv "XDG_DATA_DIRS"
384 (string-append (getcwd)
385 ":" (getenv "XDG_DATA_DIRS")))))))))
386 (native-inputs (list extra-cmake-modules pkg-config))
387 ;; TODO: Add packagekit-qt6 when a guix backend for packagekit will be
388 ;; available.
389 (inputs (list appstream-qt6
390 attica
391 fwupd ; optional
392 flatpak ; optional
393 kauth
394 kiconthemes
395 kstatusnotifieritem
396 kcoreaddons
397 kconfig
398 kcrash
399 kdbusaddons
400 ki18n
401 karchive
402 kxmlgui
403 kirigami
404 kirigami-addons
405 kitemmodels
406 kuserfeedback
407 knewstuff
408 knotifications
409 kio
410 kdeclarative
411 kcmutils
412 kidletime
413 libostree ; required by flatpak
414 markdown
415 purpose
416 qcoro-qt6
417 qt5compat
418 qtdeclarative
419 qtsvg
420 qtwayland
421 qtwebview
422 wayland)) ; required by flatpak
423 ;; -- The following features have been disabled:
424 ;; * RpmOstree, rpm-ostree binary to manage the system. Required to build the rpm-ostree backend
425 ;;
426 ;; -- The following OPTIONAL packages have not been found:
427 ;; * Snapd, Library that exposes Snapd, <https://www.snapcraft.io>
428 ;; Required to build the Snap backend
429 (synopsis "KDE and Plasma resources management GUI")
430 (description
431 "This package provides a way to find and install applications,
432games, and tools.")
433 (home-page "https://invent.kde.org/plasma/discover")
434 (license (list license:gpl2 license:gpl3))))
435
436(define-public flatpak-kcm
437 (package
438 (name "flatpak-kcm")
439 (version "6.5.5")
440 (source
441 (origin
442 (method url-fetch)
443 (uri (string-append "mirror://kde/stable/plasma/" version
444 "/flatpak-kcm-" version ".tar.xz"))
445 (sha256
446 (base32 "01nja6crs17nq8jrnsmrnlnyfjvz85frdllvslw85mmf8jzq6b7j"))))
447 (build-system qt-build-system)
448 (arguments
449 (list #:qtbase qtbase))
450 (native-inputs
451 (list extra-cmake-modules pkg-config))
452 (inputs
453 (list flatpak
454 kcmutils
455 kconfig
456 kcoreaddons
457 ki18n
458 kitemmodels
459 kservice
460 libostree ;required by flatpak
461 wayland ;required by flatpak
462 qtdeclarative
463 qtsvg))
464 (home-page "https://invent.kde.org/plasma/flatpak-kcm")
465 (synopsis "Flatpak permission management KCM")
466 (description "This package provides a KCModule to configure permissions for
467portal interactions. It also allows changing @code{flatpak} settings via the
468subsumed Flatpak KCM.
469
470Note: Some permissions don't make sense to show for non-sandboxed apps as they
471are only roxying @code{dbus}.")
472 (license license:gpl3+)))
473
474(define-public kactivitymanagerd
475 (package
476 (name "kactivitymanagerd")
477 (version "6.5.5")
478 (source (origin
479 (method url-fetch)
480 (uri (string-append "mirror://kde/stable/plasma/"
481 version "/" name "-"
482 version ".tar.xz"))
483 (sha256
484 (base32
485 "1y7vf40s7lx325yd7hckjg4kkys0m3cpbzmjrafwc3qqby3gi847"))))
486 (build-system qt-build-system)
487 (arguments (list #:qtbase qtbase
488 #:tests? #f))
489 (native-inputs (list extra-cmake-modules))
490 (inputs (list boost
491 kcompletion
492 kglobalaccel
493 kio
494 kxmlgui
495 kdbusaddons
496 ki18n
497 kcrash))
498 (synopsis "System service to manage user's activities")
499 (description "This package provides components for managing the KDE Activity
500concept.")
501 (home-page "https://invent.kde.org/plasma/kactivitymanagerd")
502 (license (list license:gpl2 license:gpl3))))
503
504(define-public klassy
505 (package
506 (name "klassy")
507 (version "6.5.2")
508 (source
509 (origin
510 (method git-fetch)
511 (uri (git-reference
512 (url "https://github.com/paulmcauley/klassy")
513 (commit (string-append "v" version))))
514 (file-name (git-file-name name version))
515 (sha256
516 (base32 "1dx8fa15jb8j1rnw5cpw1zp5016kazigqbldc5sdnfzx9gs4q4xc"))))
517 (build-system qt-build-system)
518 (native-inputs (list extra-cmake-modules))
519 (inputs (list qtsvg
520 kirigami
521 qtdeclarative
522 kconfig
523 kconfigwidgets
524 kcoreaddons
525 kcolorscheme
526 kdecoration
527 kcmutils
528 kguiaddons
529 kiconthemes
530 kwindowsystem
531 ki18n))
532 (arguments
533 (list
534 #:qtbase qtbase
535 #:tests? #f ; No tests.
536 #:configure-flags
537 #~(list "-DBUILD_QT5=OFF")))
538 (home-page "https://github.com/paulmcauley/klassy")
539 (synopsis "Customizable window decoration for the KDE Plasma desktop")
540 (description
541 "Klassy is a highly customizable binary Window Decoration,
542Application Style and Global Theme plugin for recent versions of the KDE Plasma
543desktop.")
544 (license (list license:bsd-3
545 license:cc0
546 license:expat
547 license:gpl2
548 license:gpl2+
549 license:gpl3))))
550
551(define-public krdp
552 (package
553 (name "krdp")
554 (version "6.5.5")
555 (source (origin
556 (method url-fetch)
557 (uri (string-append "mirror://kde/stable/plasma/"
558 version "/" name "-"
559 version ".tar.xz"))
560 (sha256
561 (base32
562 "1g9r2wdp3g8c53ypjlc1zm4akmic3z8zqqdgfbc3l0b207vnraw1"))))
563 (build-system qt-build-system)
564 (arguments (list #:qtbase qtbase
565 #:tests? #f
566 #:phases
567 #~(modify-phases %standard-phases
568 (add-after 'unpack 'hardcode-openssl
569 (lambda* (#:key inputs #:allow-other-keys)
570 (substitute* "src/kcm/kcmkrdpserver.cpp"
571 (("\"openssl\"")
572 (string-append
573 "\""
574 (search-input-file
575 inputs "/bin/openssl")
576 "\""))))))))
577 (native-inputs (list extra-cmake-modules
578 pkg-config
579 ;; for wayland-scanner
580 wayland))
581 (inputs (list
582 freerdp
583 kconfig
584 kcmutils
585 kcoreaddons
586 kcrash
587 kdbusaddons
588 kguiaddons
589 ki18n
590 kpipewire
591 kstatusnotifieritem
592 linux-pam
593 openssl
594 plasma-wayland-protocols
595 qtdeclarative
596 qtkeychain-qt6
597 qtwayland
598 wayland-protocols
599 wayland))
600 (synopsis "Library and examples for creating an RDP server")
601 (description "This package provides a library and examples for creating an
602RDP server.")
603 (home-page "https://invent.kde.org/plasma/krdp")
604 (license license:lgpl2.0+)))
605
606(define-public kde-gtk-config
607 (package
608 (name "kde-gtk-config")
609 (version "6.5.5")
610 (source (origin
611 (method url-fetch)
612 (uri (string-append "mirror://kde/stable/plasma/" version
613 "/kde-gtk-config-" version ".tar.xz"))
614 (sha256
615 (base32
616 "0nl8v7chgc219aw0xa2g5m177l2iqdvm8aqhik4nkfgws5g4lsv6"))))
617 (build-system qt-build-system)
618 (arguments
619 (list
620 #:qtbase qtbase
621 #:tests? #f
622 #:phases
623 #~(modify-phases %standard-phases
624 (add-after 'unpack 'patch-gsettings-schemas-path
625 (lambda* (#:key inputs #:allow-other-keys)
626 (substitute* "cmake/modules/FindGSettingSchemas.cmake"
627 (("\\$\\{PC_GLIB2_PREFIX\\}")
628 (assoc-ref inputs "gsettings-desktop-schemas"))))))))
629 (native-inputs
630 (list extra-cmake-modules pkg-config qtsvg sassc))
631 (inputs
632 (list gsettings-desktop-schemas
633 gtk+
634 kconfig
635 kconfigwidgets
636 kcoreaddons
637 kguiaddons
638 kdbusaddons
639 kdecoration
640 kwindowsystem
641 xsettingsd))
642 (home-page "https://invent.kde.org/plasma/kde-gtk-config")
643 (synopsis "Sync of KDE settings to GTK applications")
644 (description "This package provides tools to sync KDE settings to GTK
645applications.")
646 (license (list license:bsd-2 license:bsd-3 license:gpl2 license:gpl3))))
647
648(define-public kdecoration
649 (package
650 (name "kdecoration")
651 (version "6.5.5")
652 (source (origin
653 (method url-fetch)
654 (uri (string-append "mirror://kde/stable/plasma/" version
655 "/kdecoration-" version ".tar.xz"))
656 (sha256
657 (base32
658 "06k8acdj29llp3gavijjfgs9m3l7n5vyd3fpnqks81sg6z37n8fw"))))
659 (build-system qt-build-system)
660 (arguments (list #:qtbase qtbase))
661 (native-inputs
662 (list extra-cmake-modules))
663 (inputs
664 (list kcoreaddons ki18n))
665 (home-page "https://invent.kde.org/plasma/kdecoration")
666 (synopsis "Plugin based library to create window decorations")
667 (description "KDecoration is a library to create window decorations.
668These window decorations can be used by for example an X11 based window
669manager which re-parents a Client window to a window decoration frame.")
670 (license license:lgpl3+)))
671
672(define-public kde-cli-tools
673 (package
674 (name "kde-cli-tools")
675 (version "6.5.5")
676 (source (origin
677 (method url-fetch)
678 (uri (string-append "mirror://kde/stable/plasma/"
679 version "/" name "-" version ".tar.xz"))
680 (patches (search-patches "kde-cli-tools-delay-mime-db.patch"))
681 (sha256
682 (base32
683 "0y92l4km0d2s1ayg4lkwizh721lzgn657z718x2ma5b3iqy5sfq8"))))
684 (build-system qt-build-system)
685 (arguments
686 (list #:qtbase qtbase
687 #:tests? #f ;TODO: Failing 1 test
688 #:phases
689 #~(modify-phases %standard-phases
690 (add-after 'unpack 'set-writable-location
691 (lambda* _
692 (substitute* "keditfiletype/tests/filetypestest.cpp"
693 (("QStandardPaths::writableLocation.QStandardPaths::\
694GenericDataLocation.")
695 (string-append "\"" (getcwd) "/\"")))))
696 (add-before 'check 'setup-env
697 (lambda* _
698 (setenv "HOME" (getcwd)))))))
699 (native-inputs (list extra-cmake-modules pkg-config shared-mime-info))
700 (inputs (list kconfig
701 kdesu
702 kdoctools
703 kiconthemes
704 ki18n
705 kcmutils
706 kio
707 kservice
708 kwindowsystem
709 plasma-activities
710 kparts
711 plasma-workspace
712 qtsvg
713 libxkbcommon))
714 (synopsis "CLI tools for interacting with KDE")
715 (description "This package provides command-line tools based on
716KDE Frameworks 5 to better interact with the system.")
717 (home-page "https://invent.kde.org/plasma/kde-cli-tools")
718 (license license:lgpl2.0+)))
719
720(define-public kdeplasma-addons
721 (package
722 (name "kdeplasma-addons")
723 (version "6.5.5")
724 (source (origin
725 (method url-fetch)
726 (uri (string-append "mirror://kde/stable/plasma/" version
727 "/" name "-" version ".tar.xz"))
728 (sha256
729 (base32
730 "1jzmhhhjxl8fc2y1p7nm7cq8dfc53nx8mw3w06aqp6aqfac9pdij"))))
731 (build-system qt-build-system)
732 (arguments
733 (list #:qtbase qtbase
734 #:test-exclude "converterrunnertest"
735 #:phases #~(modify-phases %standard-phases
736 (add-before 'check 'check-setup
737 (lambda* (#:key inputs #:allow-other-keys)
738
739 (setenv "TZDIR"
740 (search-input-directory
741 inputs "share/zoneinfo")))))))
742 ;; These packages are required by th QML modules.
743 (propagated-inputs (list kcmutils
744 kconfig
745 kcoreaddons ;PlasmaPotdProviderConfig.cmake
746 kcoreaddons
747 kdeclarative
748 kirigami
749 kitemmodels
750 ksvg
751 kwindowsystem
752 libplasma
753 plasma5support
754 qt5compat
755 qtdeclarative))
756 (native-inputs (list extra-cmake-modules tzdata-for-tests))
757 (inputs (list karchive
758 kauth
759 kdbusaddons
760 kholidays
761 ki18n
762 kio
763 kglobalaccel
764 kxmlgui
765 knotifications
766 krunner
767 kservice
768 kunitconversion
769 knewstuff
770 purpose
771 sonnet
772 ;; qtwebengine ; Optional for online dictionary
773 qtdeclarative))
774 (synopsis "Add-ons to improve your Plasma experience")
775 (description
776 "This package provides multiple addons for the Plasma Desktop.")
777 (home-page "https://invent.kde.org/plasma/kdeplasma-addons")
778 (license license:lgpl2.0)))
779
780(define-public kgamma
781 (package
782 (name "kgamma")
783 (version "6.5.5")
784 (source (origin
785 (method url-fetch)
786 (uri (string-append "mirror://kde/stable/plasma/"
787 version "/" name "-"
788 version ".tar.xz"))
789 (sha256
790 (base32
791 "0diypww98nkidh5k2h9xb96av3v1hpxr18h76jyb1hindljmldrc"))))
792 (build-system qt-build-system)
793 (arguments
794 (list #:qtbase qtbase
795 #:tests? #f))
796 (native-inputs (list extra-cmake-modules kdoctools))
797 (inputs (list kauth
798 kcoreaddons
799 kconfig
800 kconfigwidgets
801 kcmutils
802 ki18n))
803 (synopsis "Adjust monitor gamma settings")
804 (description
805 "This package provides a tool to adjust your monitor gamma settings.")
806 (home-page "https://invent.kde.org/plasma/kgamma5")
807 (license license:gpl2+)))
808
809(define-public kglobalacceld
810 (package
811 (name "kglobalacceld")
812 (version "6.5.5")
813 (source (origin
814 (method url-fetch)
815 (uri (string-append "mirror://kde/stable/plasma/"
816 version "/" name "-"
817 version ".tar.xz"))
818 (sha256
819 (base32
820 "0xh1vifpdjsgipndvzzsxdz02da3ylq6hbcyv4a1w47dazcm4gka"))))
821 (build-system qt-build-system)
822 (arguments (list #:qtbase qtbase
823 #:phases
824 #~(modify-phases %standard-phases
825 (add-before 'check 'setenv
826 (lambda _
827 (setenv "HOME" (getcwd))))
828 (replace 'check
829 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
830 (invoke "dbus-launch" "ctest" "-j"
831 (if parallel-tests?
832 (number->string (parallel-job-count))
833 "1")))))))
834 (native-inputs (list extra-cmake-modules dbus))
835 (inputs (list kconfig
836 kcoreaddons
837 kcrash
838 kdbusaddons
839 kwindowsystem
840 kglobalaccel
841 kservice
842 kio
843 kjobwidgets
844 xcb-util-keysyms
845 libxkbcommon))
846 (synopsis "Daemon providing Global Keyboard Shortcut (Accelerator)
847functionality")
848 (description
849 "This package provides a Daemon providing Global Keyboard Shortcut
850(Accelerator) functionality.")
851 (home-page "https://invent.kde.org/plasma/kglobalacceld")
852 (license license:gpl2+)))
853
854(define-public kinfocenter
855 (package
856 (name "kinfocenter")
857 (version "6.5.5")
858 (source (origin
859 (method url-fetch)
860 (uri (string-append "mirror://kde/stable/plasma/" version
861 "/" name "-" version ".tar.xz"))
862 (sha256
863 (base32
864 "075qslmnxzgz07m5lrbbpnb5cj1pmb79mmbz877i8r409jgqyysn"))))
865 (build-system qt-build-system)
866 (arguments
867 (list
868 #:qtbase qtbase
869 #:phases
870 #~(modify-phases %standard-phases
871 (add-after 'unpack 'set-path
872 (lambda* (#:key inputs #:allow-other-keys)
873 (let ((replace (lambda (file cmd)
874 (substitute* file
875 (((string-append
876 "\""
877 cmd
878 "\""))
879 (string-append
880 "\""
881 (search-input-file
882 inputs
883 (string-append "/bin/" cmd))
884 "\"")))))
885 (dmidecode (search-input-file inputs "/sbin/dmidecode")))
886 (substitute* "CMakeLists.txt"
887 (("\\$\\{KDE_INSTALL_FULL_BINDIR\\}/systemsettings")
888 (search-input-file inputs
889 "/bin/.systemsettings-real")))
890 (substitute* "kcms/kwinsupportinfo/kcm_kwinsupportinfo.json.in"
891 (("@QtBinariesDir@/qdbus")
892 (search-input-file inputs "/bin/qdbus")))
893 (substitute* "kcms/kwinsupportinfo/main.cpp"
894 (("QLibraryInfo::path\\(QLibraryInfo::BinariesPath\\) \\+ QStringLiteral\\(\"/qdbus\"\\)")
895 (string-append "QStringLiteral(\"" (search-input-file inputs "/bin/qdbus") "\")")))
896 (substitute* "kcms/memory/kcm_memory.json"
897 (("pkexec dmidecode")
898 (string-append
899 "pkexec " dmidecode)))
900 (substitute* "kcms/memory/main.cpp"
901 (("dmidecode") dmidecode))
902 (substitute* '("kcms/firmware_security/main.cpp"
903 "kcms/firmware_security/fwupdmgr.sh"
904 "kcms/firmware_security/kcm_firmware_security.json")
905 (("aha") (search-input-file inputs "/bin/aha"))
906 (("\"fwupdmgr\"") (string-append "\"" (search-input-file inputs "/bin/fwupdmgr") "\""))
907 (("fwupdmgr security") (string-append (search-input-file inputs "/bin/fwupdmgr") " security"))
908 (("sed") (search-input-file inputs "/bin/sed"))
909 (("/bin/sh") (search-input-file inputs "/bin/sh")))
910 (replace '("kcms/cpu/kcm_cpu.json"
911 "kcms/cpu/main.cpp") "lscpu")
912 (replace '("kcms/opencl/kcm_opencl.json"
913 "kcms/opencl/main.cpp") "clinfo")
914 (replace '("kcms/vulkan/kcm_vulkan.json"
915 "kcms/vulkan/main.cpp") "vulkaninfo")
916 (replace '("kcms/glx/kcm_glx.json"
917 "kcms/glx/main.cpp") "glxinfo")
918 (replace '("kcms/wayland/kcm_wayland.json"
919 "kcms/wayland/main.cpp") "wayland-info")
920 (replace '("kcms/egl/kcm_egl.json"
921 "kcms/egl/main.cpp") "eglinfo")
922 (replace '("kcms/xserver/kcm_xserver.json"
923 "kcms/xserver/main.cpp") "xdpyinfo")))))))
924 (native-inputs (list aha extra-cmake-modules kdoctools pkg-config qttools))
925 ;; * vulkaninfo
926 ;; Wayland KCM
927 (inputs (list bash-minimal
928 clinfo
929 dmidecode
930 eudev
931 fwupd
932 kauth
933 kconfig
934 kconfigwidgets
935 kcoreaddons
936 kirigami
937 ki18n
938 kcmutils
939 kio
940 kservice
941 libusb
942 kwidgetsaddons
943 kdeclarative
944 kpackage
945 kwayland
946 mesa-utils
947 pciutils
948 libplasma
949 qttools
950 qtwayland
951 solid
952 util-linux
953 vulkan-tools
954 wayland-utils
955 xdpyinfo))
956 (propagated-inputs (list system-settings))
957 (home-page "https://invent.kde.org/plasma/kinfocenter")
958 (synopsis "View information about computer's hardware")
959 (description "This package provides tool to view information about
960computer's hardware.")
961 (license (list license:gpl2 license:gpl3))))
962
963(define-public kmenuedit
964 (package
965 (name "kmenuedit")
966 (version "6.5.5")
967 (source (origin
968 (method url-fetch)
969 (uri (string-append "mirror://kde/stable/plasma/"
970 version "/" name "-" version
971 ".tar.xz"))
972 (sha256
973 (base32
974 "17q23zyx46xjafsyvyvm2rf0i6fli000i0xvw04x1j1dbqhdh1a5"))))
975 (build-system qt-build-system)
976 (arguments (list #:qtbase qtbase
977 #:tests? #f))
978 (native-inputs (list extra-cmake-modules kdoctools))
979 (inputs (list kcrash
980 ki18n
981 kxmlgui
982 kdbusaddons
983 kiconthemes
984 kio
985 kitemviews
986 sonnet
987 kglobalaccel
988 kwindowsystem
989 qtwayland))
990 (synopsis "Menu Editor for Plasma Workspaces")
991 (description "This package provides menu editor for Plasma Workspaces.")
992 (home-page "https://invent.kde.org/plasma/kmenuedit")
993 (license license:gpl2+)))
994
995(define-public knighttime
996 (package
997 (name "knighttime")
998 (version "6.5.5")
999 (source (origin
1000 (method url-fetch)
1001 (uri (string-append "mirror://kde/stable/plasma/"
1002 version "/" name "-" version
1003 ".tar.xz"))
1004 (sha256
1005 (base32
1006 "18rnlxgsjhrvkyn85m022m6vam7bbfb52hrg5fxndy2rf2xk0951"))))
1007 (build-system qt-build-system)
1008 (arguments (list #:qtbase qtbase))
1009 (native-inputs (list extra-cmake-modules qttools))
1010 (inputs (list kconfig
1011 kcoreaddons
1012 kdbusaddons
1013 kholidays
1014 ki18n
1015 qtpositioning))
1016 (synopsis "Helpers for scheduling the dark-light cycle")
1017 (description "KNightTime provides helpers for scheduling the dark-light
1018cycle. It can be used to implement features such as adjusting the screen color
1019temperature based on time of day, etc.")
1020 (home-page "https://invent.kde.org/plasma/knighttime")
1021 (license license:lgpl3+)))
1022
1023(define-public koi
1024 (package
1025 (name "koi")
1026 (version "0.6")
1027 (source
1028 (origin
1029 (method git-fetch)
1030 (uri (git-reference
1031 (url "https://github.com/baduhai/Koi")
1032 (commit version)))
1033 (file-name (git-file-name name version))
1034 (sha256
1035 (base32 "1xhrdkfsyn2qpiscp4smd2gr4vfplaid1m6lqh4lhasscvwx45k1"))))
1036 (build-system qt-build-system)
1037 (inputs (list kconfig
1038 kcoreaddons
1039 kconfigwidgets
1040 kdbusaddons
1041 kde-cli-tools
1042 kvantum
1043 plasma-workspace
1044 qtwayland))
1045 (arguments
1046 (list
1047 #:modules '((ice-9 ftw)
1048 (guix build qt-build-system)
1049 (guix build utils))
1050 #:tests? #f
1051 #:qtbase qtbase
1052 #:phases
1053 #~(modify-phases %standard-phases
1054 (add-after 'unpack 'fix-hardcoded-paths
1055 (lambda* (#:key inputs #:allow-other-keys)
1056 ;; Correct theme search paths. This won't be needed if the
1057 ;; following request is implemented:
1058 ;; https://github.com/baduhai/Koi/issues/123
1059 (ftw "."
1060 (lambda (file _ flag)
1061 (when (and (eq? flag 'regular)
1062 (or (string-suffix? ".c" file)
1063 (string-suffix? ".cpp" file)))
1064 (substitute* file
1065 (("/var/run/current-system/sw")
1066 "/run/current-system/profile")))))
1067 ;; Correct executable paths.
1068 (substitute* "src/utils.cpp"
1069 (("/usr/bin/kquitapp6")
1070 (search-input-file inputs "bin/kquitapp6"))
1071 (("/usr/bin/kstart")
1072 (search-input-file inputs "bin/kstart")))
1073 (substitute* "src/plugins/plasmastyle.cpp"
1074 (("/usr/bin/plasma-apply-desktoptheme")
1075 (search-input-file inputs "bin/plasma-apply-desktoptheme")))
1076 (substitute* "src/plugins/kvantumstyle.cpp"
1077 (("/usr/bin/kvantummanager")
1078 (search-input-file inputs "bin/kvantummanager")))
1079 (substitute* "src/plugins/colorscheme.cpp"
1080 (("programToLocate = \\{\"plasma-apply-colorscheme\"\\}")
1081 (string-append "programToLocate = {\""
1082 (search-input-file inputs
1083 "bin/plasma-apply-colorscheme") "\"}")))
1084 (substitute* "src/plugins/icons.cpp"
1085 (("programToLocate = \\{\"plasma-changeicons\"\\}")
1086 (string-append "programToLocate = {\""
1087 (search-input-file inputs
1088 "libexec/plasma-changeicons") "\"}")))
1089 (substitute* "src/plugins/script.cpp"
1090 (("programToLocate = \\{\"bash\"\\}")
1091 (string-append "programToLocate = {\""
1092 (search-input-file inputs "bin/bash") "\"}"))))))))
1093 (home-page "https://github.com/baduhai/Koi")
1094 (synopsis "Theme scheduling for the KDE Plasma Desktop")
1095 (description
1096 "Koi is a program designed to provide the KDE Plasma Desktop functionality
1097to automatically switch between light and dark themes.")
1098 (license license:lgpl3)))
1099
1100(define-public kpipewire
1101 (package
1102 (name "kpipewire")
1103 (version "6.5.5")
1104 (source (origin
1105 (method url-fetch)
1106 (uri (string-append "mirror://kde/stable/plasma/"
1107 version "/" name "-" version ".tar.xz"))
1108 (sha256
1109 (base32
1110 "0m73phg6ynma0m7z764b795qjnjns89cxbwa48cg97dh1i2dpb2a"))))
1111 (build-system cmake-build-system)
1112 (native-inputs (list extra-cmake-modules pkg-config))
1113 (propagated-inputs (list qtbase qtdeclarative
1114 ;; include/KPipeWire/dmabufhandler.h include it.
1115 libepoxy))
1116 (inputs (list libxkbcommon
1117 libva
1118 pipewire
1119 ffmpeg-6
1120 kcoreaddons
1121 ki18n
1122 kwayland
1123 plasma-wayland-protocols
1124 qtwayland
1125 wayland
1126 wayland-protocols))
1127 (arguments
1128 ;; The only test require run pipewire.
1129 (list #:tests? #f))
1130 (home-page "https://invent.kde.org/plasma/kpipewire")
1131 (synopsis "Components relating to pipewire use in Plasma")
1132 (description "This package offers a set of convenient classes to use
1133PipeWire in Qt projects.")
1134 ;; LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
1135 (license (list license:lgpl2.1 license:lgpl3))))
1136
1137(define-public kscreen
1138 (package
1139 (name "kscreen")
1140 (version "6.5.5")
1141 (source (origin
1142 (method url-fetch)
1143 (uri (string-append "mirror://kde/stable/plasma/"
1144 version "/" name "-" version
1145 ".tar.xz"))
1146 (sha256
1147 (base32
1148 "0gy5hc7cvh9g88g0xyy3cs8w3zm8vw46jmbpkqr2f5jyh8ra5j87"))))
1149 (build-system cmake-build-system)
1150 (arguments
1151 ;; TODO: All tests fail
1152 (list #:tests? #f))
1153 (native-inputs (list extra-cmake-modules qttools pkg-config
1154 wayland
1155 wayland-protocols
1156 qtwayland))
1157 (inputs (list kcmutils
1158 kconfig
1159 kcoreaddons
1160 kcrash
1161 kdbusaddons
1162 kdeclarative
1163 kglobalaccel
1164 ki18n
1165 kiconthemes
1166 kimageformats
1167 ksvg
1168 kwindowsystem
1169 kxmlgui
1170 layer-shell-qt
1171 libkscreen
1172 libplasma
1173 libxi
1174 libxkbcommon
1175 plasma-wayland-protocols
1176 qtbase
1177 qtsensors
1178 qtwayland
1179 xcb-util))
1180 (home-page "https://invent.kde.org/plasma/kscreen")
1181 (synopsis "Screen management software")
1182 (description "This package provides the screen management software for
1183KDE Plasma Workspaces.")
1184 (license license:gpl2+)))
1185
1186(define-public ksshaskpass
1187 (package
1188 (name "ksshaskpass")
1189 (version "6.5.5")
1190 (source (origin
1191 (method url-fetch)
1192 (uri (string-append "mirror://kde/stable/plasma/" version
1193 "/ksshaskpass-" version ".tar.xz"))
1194 (sha256
1195 (base32
1196 "1jvbxhamibl3d4r5nlpn1si4xxw8045q6nn37nsidfa2cjgp47hr"))))
1197 (build-system qt-build-system)
1198 (arguments
1199 (list #:qtbase qtbase
1200 #:tests? #f))
1201 (native-inputs
1202 (list extra-cmake-modules kdoctools))
1203 (inputs
1204 (list kcoreaddons ki18n kwallet kwidgetsaddons qtwayland))
1205 (home-page "https://invent.kde.org/plasma/ksshaskpass")
1206 (synopsis "Front-end for ssh-add using kwallet")
1207 (description "Ksshaskpass is a front-end for @code{ssh-add} which stores the
1208password of the ssh key in KWallet. Ksshaskpass is not meant to be executed
1209directly, you need to tell @code{ssh-add} about it. @code{ssh-add} will then
1210call it if it is not associated to a terminal.")
1211 (license license:gpl2+)))
1212
1213(define-public ksystemstats
1214 (package
1215 (name "ksystemstats")
1216 (version "6.5.5")
1217 (source (origin
1218 (method url-fetch)
1219 (uri (string-append "mirror://kde/stable/plasma/"
1220 version "/" name "-"
1221 version ".tar.xz"))
1222 (sha256
1223 (base32
1224 "17ffml9280f75p73m5b0mji5h2q577sfck2kv3y24kq87m09f465"))))
1225 (build-system qt-build-system)
1226 (arguments
1227 (list #:qtbase qtbase
1228 #:test-exclude "ksystemstatstest"))
1229 (native-inputs (list extra-cmake-modules pkg-config))
1230 (inputs (list glib
1231 kcoreaddons
1232 kcrash
1233 kdbusaddons
1234 solid
1235 networkmanager-qt
1236 kiconthemes
1237 kio
1238 ki18n
1239 libksysguard
1240 libnl
1241 eudev
1242 `(,lm-sensors "lib")
1243 network-manager))
1244 (synopsis "Plugin based system monitoring daemon")
1245 (description
1246 "This package provides a daemon that collects statistics about
1247the running system.")
1248 (home-page "https://invent.kde.org/plasma/ksystemstats")
1249 (license (list license:gpl2 license:gpl3))))
1250
1251(define-public layer-shell-qt
1252 (package
1253 (name "layer-shell-qt")
1254 (version "6.5.5")
1255 (source (origin
1256 (method url-fetch)
1257 (uri (string-append "mirror://kde/stable/plasma/" version
1258 "/layer-shell-qt-" version ".tar.xz"))
1259 (sha256
1260 (base32
1261 "049cmgz8i7ym1xdkakcvm7ak1y2yb58qnc6q1hrbqz4bbgjzwi38"))))
1262 (build-system qt-build-system)
1263 (arguments
1264 (list #:qtbase qtbase
1265 #:tests? #f))
1266 (propagated-inputs
1267 (list qtdeclarative)) ;as required by LayerShellQtConfig.cmake
1268 (native-inputs
1269 (list extra-cmake-modules pkg-config))
1270 (inputs
1271 (list libxkbcommon
1272 qtwayland
1273 wayland
1274 wayland-protocols))
1275 (home-page "https://invent.kde.org/plasma/layer-shell-qt")
1276 (synopsis "Qt component for the Wayland ql-layer-shell protocol")
1277 (description "Qt component for the Wayland ql-layer-shell protocol.")
1278 (license license:gpl2+)))
1279
1280(define-public kscreenlocker
1281 (package
1282 (name "kscreenlocker")
1283 (version "6.5.5")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (string-append "mirror://kde/stable/plasma/" version
1287 "/kscreenlocker-" version ".tar.xz"))
1288 (sha256
1289 (base32
1290 "0gpk2fsbg3s4mqizslhjlcr1cm79ylmpwyq4w6kx6assjag6838m"))))
1291 (build-system qt-build-system)
1292 (arguments
1293 (list #:tests? #f ;TODO: make tests pass
1294 #:qtbase qtbase
1295 #:phases #~(modify-phases %standard-phases
1296 (add-before 'check 'check-setup
1297 (lambda* (#:key inputs outputs #:allow-other-keys)
1298 (system "Xvfb :1 -screen 0 640x480x24 &")
1299 (setenv "DISPLAY" ":1")))
1300 (delete 'check)
1301 ;; Tests use the installed library and require a DBus session.
1302 (add-after 'install 'check
1303 (lambda* (#:key tests? #:allow-other-keys)
1304 (if tests?
1305 (begin
1306 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
1307 (invoke "dbus-launch" "ctest"))))))))
1308 (native-inputs (list extra-cmake-modules pkg-config
1309 ;; for WaylandScanner
1310 wayland
1311 ;; For tests.
1312 dbus xorg-server-for-tests))
1313 (inputs (list kcmutils
1314 kconfig
1315 kcrash
1316 kglobalaccel
1317 ki18n
1318 kio
1319 kidletime
1320 knotifications
1321 kwayland
1322 kwindowsystem
1323 kxmlgui
1324 ksvg
1325 layer-shell-qt
1326 libkscreen
1327 libplasma
1328 libxi ;XInput, required for grabbing XInput2 devices
1329 linux-pam
1330 libxkbcommon
1331 elogind ;optional loginctl support
1332 qtdeclarative
1333 solid
1334 wayland
1335 xcb-util-keysyms))
1336 (home-page "https://invent.kde.org/plasma/kscreenlocker")
1337 (synopsis "Screen locking library")
1338 (description
1339 "@code{kscreenlocker} is a library for creating secure lock screens.")
1340 (license license:gpl2+)))
1341
1342(define-public libkscreen
1343 (package
1344 (name "libkscreen")
1345 (version "6.5.5")
1346 (source
1347 (origin
1348 (method url-fetch)
1349 (uri (string-append "mirror://kde/stable/plasma/" version "/"
1350 name "-" version ".tar.xz"))
1351 (sha256
1352 (base32 "1yb1r2786fi0x304i4ky5ygxkba57vcxgvrl1a00djdhv1ng0nsr"))))
1353 (build-system qt-build-system)
1354 (arguments
1355 (list
1356 #:qtbase qtbase
1357 #:test-exclude "kscreen-testqscreenbackend"
1358 #:phases
1359 #~(modify-phases %standard-phases
1360 (add-before 'check 'check-env-setup
1361 (lambda* (#:key tests? #:allow-other-keys)
1362 (when tests?
1363 (setenv "HOME" (getcwd))
1364 (with-output-to-file "autotests/BLACKLIST"
1365 (lambda _
1366 (for-each
1367 (lambda (name)
1368 (display (string-append "[" name "]\n*\n")))
1369 (list
1370 "verifyOutputs"
1371 ;; also fail on upstream
1372 "testEdidParser"
1373 "testEnv"
1374 "testPreferredBackend"
1375 "testFallback"
1376 "testModeSwitching"
1377 "verifyConfig"))))))))))
1378 (native-inputs
1379 (list extra-cmake-modules
1380 pkg-config
1381 qttools
1382 ;; For testing.
1383 dbus))
1384 (inputs
1385 (list kwayland libxrandr plasma-wayland-protocols qtwayland
1386 wayland
1387 libxkbcommon))
1388 (home-page "https://community.kde.org/Solid/Projects/ScreenManagement")
1389 (synopsis "KDE's screen management software")
1390 (description "KScreen is the new screen management software for KDE Plasma
1391Workspaces which tries to be as magic and automatic as possible for users with
1392basic needs and easy to configure for those who want special setups.")
1393 (license license:gpl2+)))
1394
1395(define-public libksysguard
1396 (package
1397 (name "libksysguard")
1398 (version "6.5.5")
1399 (source
1400 (origin
1401 (method url-fetch)
1402 (uri (string-append "mirror://kde/stable/plasma/" version
1403 "/libksysguard-" version ".tar.xz"))
1404 (sha256
1405 (base32 "0kbkvab6355b92p0q9fvwjrh4xvddnk2nzgj33pnmyhx5f0y9f12"))))
1406 (propagated-inputs
1407 (list ;; As required by KSysGuardConfig.cmake.
1408 kconfig ki18n
1409 ;; As required by the QML modules.
1410 kirigami kitemmodels kquickcharts qt5compat qtdeclarative))
1411 (native-inputs
1412 (list bash-minimal extra-cmake-modules pkg-config qttools))
1413 (inputs
1414 (list kauth
1415 kcoreaddons
1416 knewstuff
1417 kpackage
1418 kservice
1419 libnl
1420 libcap
1421 libpcap
1422 `(,lm-sensors "lib")
1423 solid
1424 zlib))
1425 (build-system qt-build-system)
1426 (arguments
1427 (list
1428 #:qtbase qtbase
1429 #:phases #~(modify-phases %standard-phases
1430 (add-after 'unpack 'fix-test
1431 (lambda* _
1432 (substitute* "autotests/processtest.cpp"
1433 (("/bin/sh")
1434 (which "bash"))))))))
1435 (home-page "https://userbase.kde.org/KSysGuard")
1436 (synopsis "Network enabled task and system monitoring")
1437 (description "KSysGuard can obtain information on system load and
1438manage running processes. It obtains this information by interacting
1439with a ksysguardd daemon, which may also run on a remote system.")
1440 (license license:gpl3+)))
1441
1442(define-public kwallet-pam
1443 (package
1444 (name "kwallet-pam")
1445 (version "6.5.5")
1446 (source (origin
1447 (method url-fetch)
1448 (uri (string-append "mirror://kde/stable/plasma/"
1449 version "/" name "-" version
1450 ".tar.xz"))
1451 (sha256
1452 (base32
1453 "1dhpxf1xqkch68kqmaq08ynwixxs6d0pkz75dziyyyijf7z03yhl"))))
1454 (build-system qt-build-system)
1455 (arguments
1456 (list
1457 #:qtbase qtbase
1458 #:tests? #f ;no tests
1459 #:phases
1460 #~(modify-phases %standard-phases
1461 (add-after 'install 'fix-socat-path
1462 (lambda* (#:key inputs #:allow-other-keys)
1463 (substitute* (string-append #$output
1464 "/libexec/pam_kwallet_init")
1465 (("socat")
1466 (search-input-file inputs "bin/socat"))))))))
1467 (native-inputs (list extra-cmake-modules pkg-config))
1468 (inputs (list linux-pam kwallet libgcrypt socat))
1469 (synopsis "PAM Integration with KWallet")
1470 (description "Provide PAM Integration with KWallet to unlock KWallet when
1471you login.")
1472 (home-page "https://invent.kde.org/plasma/kwallet-pam")
1473 (license (list license:lgpl2.1+))))
1474
1475(define-public kwin
1476 (package
1477 (name "kwin")
1478 (version "6.5.5")
1479 (source (origin
1480 (method url-fetch)
1481 (uri (string-append "mirror://kde/stable/plasma/"
1482 version "/"
1483 name "-" version ".tar.xz"))
1484 (patches (search-patches "kwin-unwrap-executable-name-for-dot-desktop-search.patch"))
1485 (sha256
1486 (base32
1487 "0ihy0lzi0skp4jn4rnc9abvbdl8k2wnmfiddgb5784938i889bgv"))))
1488 (build-system qt-build-system)
1489 (arguments
1490 (list
1491 #:qtbase qtbase
1492 #:test-exclude
1493 (string-append "("
1494 (string-join
1495 `(;; Fails on an Apple M1 (aarch64) with the following error:
1496 ;; TestColorspaces::roundtripConversion fails
1497 "kwin-testColorspaces"
1498
1499 "kwin-testDrm" ;; require Drm
1500 "kwin-testInputMethod"
1501 "kwin-testPlasmaWindow" ;; require plasma-workspace qml module.
1502 "kwin-testButtonRebind"
1503 "kwin-testDecorationInput"
1504 "kwin-testPointerInput"
1505 "kwin-testXdgShellWindow"
1506 "kwin-testXdgShellWindow-waylandonly"
1507 "kwin-testSceneOpenGLES"
1508 "kwin-testSceneOpenGLES-waylandonly"
1509 "kwin-testNightColor"
1510 "kwin-testNightColor-waylandonly"
1511 "kwin-testScriptedEffects"
1512 "kwayland-testServerSideDecoration"
1513 "kwayland-testWaylandSurface"
1514
1515 "kwin-testLibinputDevice"
1516 "kwin-testLockScreen"
1517 "kwin-testTabBox"
1518 "kwin-testKeyboardInput"
1519 "kwin-testKeyboardLayout"
1520 "kwin-testQuickTiling"
1521 "kwin-testDbusInterface"
1522 "kwin-testX11KeyRead"
1523 "kwin-testVirtualKeyboardDBus"
1524 "kwin-testGlobalShortcuts"
1525 "kwin-testKWinBindings"
1526 "kwin-testMinimizeAllScript"
1527 "kwin-testLibinputDevice"
1528 "kwin-testX11Window"
1529 "kwin-testXwaylandInput"
1530 "kwin-testWindowRules"
1531
1532 "kwin-testXdgShellWindowRules"
1533 "kwin-testStickyKeys"
1534 "kwin-testFractionalRepaint"
1535 "kwin-testDrmLegacy"
1536 "kwin-testInputCapture"
1537 "kwin-testMockDrm"
1538 "kwin-testSecurityContext"
1539 "kwin-testXwaylandSelection"
1540
1541 "kwin-testA11yKeyboardMonitor")
1542 "|")
1543 ")")
1544 #:phases
1545 #~(modify-phases %standard-phases
1546 (add-after 'unpack 'patch
1547 (lambda* (#:key inputs #:allow-other-keys)
1548 (substitute*
1549 '("autotests/integration/dont_crash_glxgears.cpp"
1550 "autotests/integration/debug_console_test.cpp"
1551 "autotests/integration/x11_window_test.cpp")
1552 (("setProgram\\(QStringLiteral\\(\"glxgears\"\\)")
1553 (string-append
1554 "setProgram(QByteArrayLiteral(\"" (which "glxgears") "\")")))
1555 (substitute*
1556 '("tests/renderingservertest.cpp"
1557 "tests/waylandservertest.cpp")
1558 (("QByteArrayLiteral\\(\"Xwayland\"\\)")
1559 (string-append
1560 "QByteArrayLiteral(\"" (which "Xwayland") "\")")))
1561 (substitute* '("src/xwayland/xwaylandlauncher.cpp")
1562 (("findExecutable\\(\"Xwayland\"\\)")
1563 (string-append
1564 "findExecutable(\""
1565 (search-input-file inputs "/bin/Xwayland") "\")")))
1566 ;; https://github.com/NixOS/nixpkgs/blob/6da4bc6cb07cba1b8e53d139cbf1d2fb8061d967/pkgs/desktops/plasma-5/kwin/0003-plugins-qpa-allow-using-nixos-wrapper.patch
1567 (substitute* "src/plugins/qpa/main.cpp"
1568 (("(\\(QLatin1String\\(\"kwin_wayland\"\\)\\))" _ start)
1569 (string-append start " && !QCoreApplication::applicationFilePath()\
1570.endsWith(QLatin1String(\".kwin_wayland-real\"))" )))
1571 (substitute* '("cmake/modules/Findhwdata.cmake")
1572 (("/usr/share")
1573 (string-append #$(this-package-input "hwdata") "/share")))))
1574 (replace 'check
1575 (lambda* (#:key tests? (test-exclude "") #:allow-other-keys)
1576 (when tests?
1577 (setenv "XDG_RUNTIME_DIR" (getcwd))
1578 (setenv "HOME" (getcwd))
1579 (setenv "XDG_DATA_DIRS"
1580 (string-append #$output "/share:"
1581 (getenv "XDG_DATA_DIRS")))
1582 (setenv "QT_PLUGIN_PATH"
1583 (string-append #$output
1584 "/lib/qt6/plugins:"
1585 (getenv "QT_PLUGIN_PATH")))
1586 (setenv "DISPLAY" ":1")
1587 (system "Xvfb :1 &")
1588 (sleep 5)
1589 (invoke "dbus-launch" "ctest" "-E" test-exclude)))))))
1590 ;; As required by KWinConfig.cmake.
1591 (propagated-inputs (list kconfig
1592 kcoreaddons
1593 kwindowsystem
1594 libepoxy
1595 wayland))
1596 (native-inputs (list extra-cmake-modules
1597 dbus
1598 kdoctools
1599 mesa-utils
1600 pkg-config
1601 qttools
1602 wayland-protocols
1603 xorg-server-for-tests
1604 python-minimal
1605 ;; for QtWaylandScanner
1606 qtwayland))
1607 (inputs (list aurorae
1608 breeze
1609 eudev
1610 fontconfig
1611 freetype
1612 hwdata
1613 kauth
1614 kcmutils
1615 kcompletion
1616 kcrash
1617 kdbusaddons
1618 kdeclarative
1619 kdecoration
1620 kglobalaccel
1621 kglobalacceld
1622 kguiaddons
1623 ki18n
1624 kiconthemes
1625 kidletime
1626 kio
1627 kirigami
1628 knewstuff
1629 knighttime
1630 knotifications
1631 kpackage
1632 kpipewire
1633 krunner
1634 kscreenlocker
1635 ktextwidgets
1636 kwayland
1637 kxmlgui
1638 ksvg
1639 lcms
1640 libcanberra
1641 libcap
1642 libdisplay-info
1643 libei
1644 libinput
1645 libplasma
1646 libqaccessibilityclient
1647 libxkbcommon
1648 pipewire
1649 plasma-activities
1650 plasma-wayland-protocols
1651 qt5compat
1652 qtdeclarative
1653 qtmultimedia
1654 qtwayland
1655 qtsensors
1656 qtsvg
1657 xcb-util ;fails at build time without this
1658 xcb-util-cursor
1659 xcb-util-keysyms
1660 xcb-util-wm
1661 xcmsdb
1662 xinput ;XXX: Says disabled in configure phase
1663 xorg-server-xwayland
1664 zlib))
1665 ;; Runtime-only dependency needed for mapping monitor hardware vendor IDs to full names
1666 ;; * QtQuick.Controls-QMLModule, QML module 'QtQuick.Controls' is a runtime dependency.
1667 ;; * org.kde.plasma.core-QMLModule, QML module 'org.kde.plasma.core' is a runtime dependency.
1668 ;; * org.kde.plasma.components-QMLModule, QML module 'org.kde.plasma.components' is a runtime dependency.
1669 (home-page "https://userbase.kde.org/KWin")
1670 (synopsis "KDE Plasma Window Manager")
1671 (description
1672 "KWin is an easy to use, but flexible, composited Window Manager for
1673Xorg windowing systems (Wayland, X11) on Linux. Its primary usage is in
1674conjunction with the KDE Plasma Desktop.")
1675 (license license:gpl2+)))
1676
1677(define-public kwrited
1678 (package
1679 (name "kwrited")
1680 (version "6.5.5")
1681 (source (origin
1682 (method url-fetch)
1683 (uri (string-append "mirror://kde/stable/plasma/"
1684 version "/" name "-"
1685 version ".tar.xz"))
1686 (sha256
1687 (base32
1688 "1358v7qapfdf07xcan2vk1282sx11qknxyhvlhzdm27ds1py9b6h"))))
1689 (build-system qt-build-system)
1690 (native-inputs (list extra-cmake-modules))
1691 (inputs (list kcoreaddons ki18n kpty knotifications))
1692 (arguments
1693 (list #:qtbase qtbase
1694 #:tests? #f))
1695 (home-page "https://invent.kde.org/plasma/kwrited")
1696 (synopsis "System notification daemon")
1697 (description
1698 "This package provides a daemon that listens to system notifications.")
1699 (license license:gpl2+)))
1700
1701(define-public milou
1702 (package
1703 (name "milou")
1704 (version "6.5.5")
1705 (source (origin
1706 (method url-fetch)
1707 (uri (string-append "mirror://kde/stable/plasma/"
1708 version "/" name "-"
1709 version ".tar.xz"))
1710 (sha256
1711 (base32
1712 "1pc97l90l7fw6s6lmqkh22rci24d8b48ycwpv404iyyr0ad0j7g8"))))
1713 (build-system qt-build-system)
1714 ;; As required to be imported by the plasmoid on runtime.
1715 (propagated-inputs (list kirigami libplasma qtdeclarative))
1716 (native-inputs (list extra-cmake-modules))
1717 (inputs (list kcoreaddons
1718 ki18n
1719 kdeclarative
1720 kitemmodels
1721 kservice
1722 kwindowsystem
1723 krunner
1724 ksvg))
1725 (arguments (list #:qtbase qtbase
1726 #:tests? #f))
1727 (synopsis "Dedicated search application built on top of Baloo")
1728 (description "This package provides a dedicated search application built
1729on top of Baloo.")
1730 (home-page "https://invent.kde.org/plasma/milou")
1731 (license (list license:gpl2+))))
1732
1733(define-public qqc2-breeze-style
1734 (package
1735 (name "qqc2-breeze-style")
1736 (version "6.5.5")
1737 (source (origin
1738 (method url-fetch)
1739 (uri (string-append "mirror://kde/stable/plasma/"
1740 version "/" name "-"
1741 version ".tar.xz"))
1742 (sha256
1743 (base32
1744 "1bxmf7nw45hvl31a9diw5l9c7q1j13l00i5ma7bi2w8gax0vdrqw"))))
1745 (build-system qt-build-system)
1746 (arguments
1747 (list #:qtbase qtbase
1748 #:tests? #f))
1749 (propagated-inputs
1750 (list ;; As required by QQC2BreezeStyleConfig.cmake.
1751 kiconthemes kcolorscheme
1752 ;; As required by the QML modules.
1753 kguiaddons kirigami qtdeclarative))
1754 (native-inputs
1755 (list extra-cmake-modules))
1756 (inputs (list kconfig kquickcharts))
1757 (home-page "https://invent.kde.org/plasma/qqc2-breeze-style")
1758 (synopsis "Breeze inspired Qt Quick Controls Style")
1759 (description "This package provides Breeze inspired Qt Quick Controls Style.")
1760 (license (list license:lgpl2.0+ license:gpl2+))))
1761
1762(define-public oxygen-sounds
1763 (package
1764 (name "oxygen-sounds")
1765 (version "6.5.5")
1766 (source (origin
1767 (method url-fetch)
1768 (uri (string-append "mirror://kde/stable/plasma/"
1769 version "/" name "-"
1770 version ".tar.xz"))
1771 (sha256
1772 (base32
1773 "1kr43cqaj3cw8rag4kkrq3sw1cacxpjwaizzl3rrsxnr4fvavf2k"))))
1774 (build-system cmake-build-system)
1775 (arguments (list #:tests? #f))
1776 (native-inputs (list extra-cmake-modules))
1777 (home-page "https://community.kde.org/Frameworks")
1778 (synopsis "Sounds for the KDE desktop")
1779 (description "This package provides Oxygen sounds for the KDE desktop.")
1780 (license license:lgpl3+)))
1781
1782(define-public ocean-sound-theme
1783 (package
1784 (name "ocean-sound-theme")
1785 (version "6.5.5")
1786 (source (origin
1787 (method url-fetch)
1788 (uri (string-append "mirror://kde/stable/plasma/"
1789 version "/ocean-sound-theme" "-"
1790 version ".tar.xz"))
1791 (sha256
1792 (base32
1793 "0b514iba9fbl3rkkf6kn448ga65671wc6idxsf0w6g8ak74rqqnf"))))
1794 (build-system cmake-build-system)
1795 (arguments (list #:tests? #f))
1796 (native-inputs (list extra-cmake-modules))
1797 (inputs (list qtbase))
1798 (home-page "https://invent.kde.org/plasma/ocean-sound-theme")
1799 (synopsis "Ocean Sound Theme for Plasma")
1800 (description "This package provides Ocean Sound Theme for Plasma.")
1801 (license license:lgpl3+)))
1802
1803(define-public xdg-desktop-portal-kde
1804 (package
1805 (name "xdg-desktop-portal-kde")
1806 (version "6.5.5")
1807 (source (origin
1808 (method url-fetch)
1809 (uri (string-append "mirror://kde/stable/plasma/" version "/"
1810 name "-" version ".tar.xz"))
1811 (sha256
1812 (base32
1813 "0afdz1ch70m83sy1rf0whdjyfhjp4bxi1w45c8i9mcq5ga3g31x2"))))
1814 (build-system qt-build-system)
1815 (arguments (list
1816 #:tests? #f ;; colorschemetest test fail, because require dbus.
1817 #:qtbase qtbase))
1818 (native-inputs (list extra-cmake-modules pkg-config
1819 ;; require by test.
1820 python-minimal
1821 python-pygobject))
1822 (inputs (list cups
1823 kcoreaddons
1824 kconfig
1825 kcrash
1826 ki18n
1827 kdeclarative
1828 kio
1829 kirigami
1830 knotifications
1831 libplasma
1832 plasma-wayland-protocols
1833 kstatusnotifieritem
1834 kwayland
1835 kwidgetsaddons
1836 kwindowsystem
1837 kiconthemes
1838 qtdeclarative
1839 qtwayland
1840 wayland
1841 kglobalaccel
1842 kguiaddons
1843 libxkbcommon
1844 wayland-protocols))
1845 (propagated-inputs
1846 (list xdg-desktop-portal))
1847 (synopsis "Backend implementation for xdg-desktop-portal using Qt/KF5")
1848 (description "This package provides a backend implementation
1849for xdg-desktop-portal that is using Qt/KF5.")
1850 (home-page "https://invent.kde.org/plasma/xdg-desktop-portal-kde")
1851 (license license:lgpl2.0+)))
1852
1853(define-public plasma
1854 (package
1855 (name "plasma")
1856 (version (package-version breeze))
1857 (source #f)
1858 (build-system trivial-build-system)
1859 (arguments
1860 (list #:builder #~(begin
1861 (mkdir #$output))))
1862 ;; These inputs are used by plasma-desktop-service-type.
1863 (inputs (list bolt ;for plasma-thunderbolt
1864 fwupd ;for kinfocenter and discover
1865 packagekit)) ;for discover
1866 (propagated-inputs (list appmenu-gtk-module
1867 aurorae
1868 baloo
1869 bluedevil
1870 breeze
1871 breeze-gtk
1872 breeze-icons ;default mouse icon
1873 colord
1874 discover
1875 ffmpegthumbs
1876 flatpak ;for discover
1877 flatpak-kcm ;to manage flatpak app permissions
1878 kactivitymanagerd
1879 kdeclarative ;required by sddm breeze theme
1880 kde-cli-tools
1881 kde-gtk-config
1882 kded
1883 kdeplasma-addons
1884 kglobalaccel
1885 kglobalacceld
1886 kiconthemes ;required by sddm breeze theme
1887 kinfocenter
1888 kio
1889 kio-extras
1890 kmenuedit
1891 knighttime
1892 krdp
1893 kscreen
1894 kscreenlocker
1895 ksshaskpass
1896 ksvg ;required by sddm breeze theme
1897 ksystemstats
1898 ktexteditor
1899 kwallet
1900 kwallet-pam
1901 kwin
1902 layer-shell-qt
1903 libkscreen
1904 libksysguard
1905 milou
1906 ocean-sound-theme
1907 oxygen-sounds
1908 plasma5support ;required by sddm breeze theme
1909 plasma-browser-integration
1910 plasma-desktop
1911 plasma-disks
1912 plasma-firewall
1913 plasma-integration
1914 plasma-nm
1915 plasma-pa
1916 plasma-systemmonitor
1917 plasma-thunderbolt
1918 plasma-vault
1919 plasma-welcome
1920 plasma-workspace
1921 plasma-workspace-wallpapers
1922 polkit-kde-agent
1923 powerdevil
1924 qqc2-breeze-style
1925 qqc2-desktop-style ;for qtquickcontrols2 theme
1926 qt5compat ;required by sddm breeze theme
1927 qtbase ;for QT_PLUGIN_PATH and QML_IMPORT_PATH
1928 qtdeclarative
1929 qtsvg
1930 system-settings
1931 xdg-desktop-portal-kde
1932 ;; module cyclic referencing
1933 (module-ref
1934 (resolve-interface
1935 '(gnu packages kde-systemtools))
1936 'dolphin)
1937 (module-ref
1938 (resolve-interface
1939 '(gnu packages kde-systemtools))
1940 'kde-inotify-survey)
1941 (module-ref
1942 (resolve-interface
1943 '(gnu packages kde-systemtools))
1944 'konsole)
1945 (module-ref
1946 (resolve-interface
1947 '(gnu packages kde-systemtools))
1948 'kpmcore)
1949 (module-ref
1950 (resolve-interface
1951 '(gnu packages kde-systemtools))
1952 'kwalletmanager)
1953 (module-ref
1954 (resolve-interface
1955 '(gnu packages kde-systemtools))
1956 'partitionmanager)
1957 spectacle))
1958 (synopsis "The KDE Plasma desktop environment")
1959 (home-page "https://kde.org/plasma-desktop/")
1960 (description
1961 "KDE Plasma is an advanced graphical desktop system.")
1962 (license license:gpl2+)))
1963
1964(define-public plasma-activities
1965 (package
1966 (name "plasma-activities")
1967 (version "6.5.5")
1968 (source (origin
1969 (method url-fetch)
1970 (uri (string-append "mirror://kde/stable/plasma/"
1971 version "/plasma-activities-"
1972 version ".tar.xz"))
1973 (sha256
1974 (base32
1975 "04d5wmpd5328l3wa65dnn0b98fzrq01p14yfv0b04iy7ph79irag"))))
1976 (build-system qt-build-system)
1977 (native-inputs
1978 (list extra-cmake-modules))
1979 (inputs
1980 (list kconfig
1981 kcoreaddons
1982 kwindowsystem
1983 qtdeclarative
1984 solid))
1985 (arguments
1986 (list
1987 #:tests? #f
1988 #:qtbase qtbase))
1989 (home-page "https://invent.kde.org/plasma/plasma-activities")
1990 (synopsis "Core components for the KDE Activity System")
1991 (description "KActivities provides the infrastructure needed to manage a
1992user's activities, allowing them to switch between tasks, and for applications
1993to update their state to match the user's current activity. This includes a
1994daemon, a library for interacting with that daemon, and plugins for integration
1995with other frameworks.")
1996 ;; triple licensed
1997 (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
1998
1999(define-public plasma-activities-stats
2000 (package
2001 (name "plasma-activities-stats")
2002 (version "6.5.5")
2003 (source (origin
2004 (method url-fetch)
2005 (uri (string-append "mirror://kde/stable/plasma/"
2006 version "/plasma-activities-stats-"
2007 version ".tar.xz"))
2008 (sha256
2009 (base32
2010 "041a466iz29b8gjk3r1g8wa14chkd6279zaj89596gyk81l1na3z"))))
2011 (build-system cmake-build-system)
2012 (arguments (list #:tests? #f))
2013 (native-inputs
2014 (list extra-cmake-modules))
2015 (inputs
2016 (list boost plasma-activities kconfig qtbase qtdeclarative))
2017 (home-page "https://invent.kde.org/plasma/plasma-activities-stats")
2018 (synopsis "Access usage statistics collected by the activity manager")
2019 (description "The KActivitiesStats library provides a querying mechanism for
2020the data that the activity manager collects---which documents have been opened
2021by which applications, and what documents have been linked to which activity.")
2022 ;; triple licensed
2023 (license (list license:lgpl2.0+ license:lgpl2.1+ license:lgpl3+))))
2024
2025(define-public plasma5support
2026 (package
2027 (name "plasma5support")
2028 (version "6.5.5")
2029 (source (origin
2030 (method url-fetch)
2031 (uri (string-append "mirror://kde/stable/plasma/" version
2032 "/" name "-" version ".tar.xz"))
2033 (sha256
2034 (base32
2035 "1zawikfndp60dqiwi8lbfn4m4a4g5rqjp8rs9k2s3ql5pdz3wbqs"))))
2036 (build-system qt-build-system)
2037 (arguments (list #:qtbase qtbase
2038 #:tests? #f)) ;no tests
2039 (native-inputs (list extra-cmake-modules pkg-config))
2040 ;; As required by Plasma5SupportConfig.cmake.
2041 (propagated-inputs (list kcoreaddons kservice))
2042 (inputs (list
2043 kconfig
2044 ki18n
2045 kio
2046 kidletime
2047 kguiaddons
2048 kholidays
2049 knotifications
2050 kunitconversion
2051 libksysguard
2052 networkmanager-qt
2053 plasma-activities
2054 qtdeclarative
2055 solid))
2056 (home-page "https://invent.kde.org/plasma/plasma5support")
2057 (synopsis "Support components for porting from KF5/Qt5 to KF6/Qt6")
2058 (description "This package provides support components for porting from
2059KF5/Qt5 to KF6/Qt6")
2060 (license (list license:lgpl2.0+))))
2061
2062(define-public plasma-browser-integration
2063 (package
2064 (name "plasma-browser-integration")
2065 (version "6.5.5")
2066 (source (origin
2067 (method url-fetch)
2068 (uri (string-append "mirror://kde/stable/plasma/" version
2069 "/" name "-" version ".tar.xz"))
2070 (sha256
2071 (base32
2072 "1vnr3dnfswz1mll3c5c91887clf4iafv31pzpcpvp8pgpv6a5sc8"))))
2073 (build-system qt-build-system)
2074 (native-inputs (list extra-cmake-modules pkg-config))
2075 ;; TODO: Figure out how to integrate this package into web browsers
2076 ;; CHROMIUM_EXTENSIONS_DIR - extension for chromium
2077 ;; MOZILLA_DIR - extension for firefox
2078 (inputs (list kio
2079 ki18n
2080 kcoreaddons
2081 kconfig
2082 kcrash
2083 kdbusaddons
2084 knotifications
2085 kitemmodels
2086 krunner
2087 plasma-activities
2088 purpose
2089 kfilemetadata
2090 kjobwidgets
2091 kstatusnotifieritem
2092 qtdeclarative))
2093 (propagated-inputs (list plasma-workspace))
2094 (arguments (list #:tests? #f ; no tests
2095 #:qtbase qtbase))
2096 (home-page "https://invent.kde.org/plasma/plasma-browser-integration")
2097 (synopsis "Integrate browsers into the Plasma Desktop")
2098 (description
2099 "This package aims to provide better integration of web browsers with
2100the KDE Plasma 6 desktop.")
2101 (license license:gpl3+)))
2102
2103(define-public plasma-desktop
2104 (package
2105 (name "plasma-desktop")
2106 (version "6.5.5")
2107 (source (origin
2108 (method url-fetch)
2109 (uri (string-append "mirror://kde/stable/plasma/" version
2110 "/" name "-" version ".tar.xz"))
2111 (sha256
2112 (base32
2113 "1is6050gydb7jsq5hwx2x881y5bgfl5zmc6jbi22wnsp64jz2rr3"))))
2114 (build-system qt-build-system)
2115 (native-inputs (list extra-cmake-modules
2116 dbus
2117 kdoctools
2118 intltool
2119 pkg-config
2120 qtsvg
2121 qttools
2122 libxml2
2123 ;; require QtWaylandScanner
2124 qtwayland))
2125 (inputs (list packagekit-qt6
2126 signond-qt6
2127 attica
2128 appstream-qt6
2129 baloo
2130 breeze
2131 breeze-icons
2132 eudev
2133 fontconfig
2134 glib
2135 ibus
2136 kaccounts-integration
2137 plasma-activities
2138 plasma-activities-stats
2139 kauth
2140 karchive
2141 kcmutils
2142 kconfig
2143 kcoreaddons
2144 kcrash
2145 kdbusaddons
2146 kdeclarative
2147 kded
2148 kdesu
2149 kglobalaccel
2150 kguiaddons
2151 kholidays
2152 ki18n
2153 kiconthemes
2154 kidletime
2155 kio
2156 kitemmodels
2157 knewstuff
2158 knotifications
2159 knotifyconfig
2160 kpackage
2161 kpeople
2162 kpipewire
2163 krunner
2164 kscreenlocker
2165 ktexteditor
2166 ktextwidgets
2167 kunitconversion
2168 kuserfeedback
2169 kwallet
2170 kwayland
2171 kwin
2172 ksvg
2173 plasma5support
2174 layer-shell-qt
2175 libaccounts-qt6
2176 libcanberra
2177 libkscreen
2178 libksysguard
2179 libqalculate
2180 libwacom
2181 gmp
2182 mpfr
2183 libsm
2184 libxi
2185 libxft
2186 libxkbcommon
2187 libxrender
2188 libxtst
2189 networkmanager-qt
2190 phonon
2191 pipewire
2192 libplasma
2193 plasma-wayland-protocols
2194 pulseaudio
2195 prison
2196 qqc2-desktop-style
2197 qt5compat
2198 qtdeclarative
2199 qtshadertools
2200 qtwayland
2201 sdl2
2202 wayland
2203 wayland-protocols
2204 xcb-util
2205 xcb-util-image
2206 xcb-util-keysyms
2207 xdg-user-dirs
2208
2209 ;; These are needed for Xserver
2210 xf86-input-libinput
2211 xf86-input-evdev
2212 xorg-server
2213 xf86-input-synaptics
2214 xkeyboard-config
2215 libxkbfile
2216 libxcursor
2217 libxkbcommon))
2218 (propagated-inputs (list font-google-noto-emoji
2219 iso-codes/pinned
2220 kirigami
2221 kirigami-addons
2222 kcmutils
2223 plasma-workspace))
2224 (arguments
2225 (list #:qtbase qtbase
2226 #:test-exclude
2227 ;; The tst_calibrationtool test fails on aarch64 due to floating-point
2228 ;; precision: QMatrix4x4 comparison fails with tiny differences
2229 ;; (1.11759e-08 instead of exact 0).
2230 (string-append "("
2231 (string-join `("positionertest"
2232 "kcm-keyboard-keyboard_memory_\
2233persister_test"
2234 "foldermodeltest"
2235 ,@(if (target-aarch64?)
2236 '("tst_calibrationtool")
2237 '()))
2238 "|")
2239 ")")
2240 #:phases
2241 #~(modify-phases %standard-phases
2242 (add-after 'unpack 'patch-wallpaper
2243 (lambda* (#:key inputs #:allow-other-keys)
2244 (substitute* "sddm-theme/theme.conf.cmake"
2245 (("background=..KDE_INSTALL_FULL_WALLPAPERDIR.")
2246 (string-append "background="
2247 #$(this-package-input "breeze")
2248 "/share/wallpapers")))))
2249 (add-after 'unpack 'fix-paths
2250 (lambda* (#:key inputs #:allow-other-keys)
2251 (substitute* "kcms/keyboard/iso_codes.h"
2252 (("\"/usr/share/xml/iso-codes\"")
2253 (string-append "\"" (search-input-directory
2254 inputs "/share/xml/iso-codes")
2255 "\"")))))
2256 (add-before 'check 'check-setup
2257 (lambda* (#:key tests? #:allow-other-keys)
2258 (when tests?
2259 (setenv "HOME" (getcwd))
2260 (setenv "XDG_RUNTIME_DIR" (getcwd))
2261 (setenv "XDG_CACHE_HOME" (getcwd))))))))
2262 (home-page "https://kde.org/plasma-desktop/")
2263 (synopsis "Plasma for the Desktop")
2264 (description
2265 "Plasma Desktop offers a beautiful looking desktop that takes
2266complete advantage of modern computing technology. Through the use of visual
2267effects and scalable graphics, the desktop experience is not only smooth but
2268also pleasant to the eye. The looks of Plasma Desktop not only provide
2269beauty, they are also used to support and improve your computer
2270activities effectively, without being distracting.")
2271 (license license:gpl2+)))
2272
2273(define-public plasma-disks
2274 (package
2275 (name "plasma-disks")
2276 (version "6.5.5")
2277 (source (origin
2278 (method url-fetch)
2279 (uri (string-append "mirror://kde/stable/plasma/"
2280 version "/" name "-"
2281 version ".tar.xz"))
2282 (sha256
2283 (base32
2284 "0xvbqhfni5r2rc7s4m3qsx9a85k0j1gcj7qvw0jwkzfipzmn6f6z"))))
2285 (build-system qt-build-system)
2286 (arguments (list
2287 #:qtbase qtbase
2288 #:phases
2289 #~(modify-phases %standard-phases
2290 (add-after 'unpack 'set-smartctl-path
2291 (lambda* (#:key inputs #:allow-other-keys)
2292 (substitute* "src/helper.cpp"
2293 (("\"smartctl\"")
2294 (string-append
2295 "\""
2296 (search-input-file
2297 inputs "/sbin/smartctl")
2298 "\""))))))))
2299 (native-inputs (list extra-cmake-modules))
2300 (inputs (list kcoreaddons
2301 kdbusaddons
2302 knotifications
2303 ki18n
2304 kcmutils
2305 solid
2306 kservice
2307 kio
2308 kauth
2309 kdeclarative
2310 smartmontools))
2311 (synopsis "Monitors S.M.A.R.T. capable devices for imminent failure")
2312 (description "This package provides interface to S.M.A.R.T. data of disks.")
2313 (home-page "https://invent.kde.org/plasma/plasma-disks")
2314 (license (list license:gpl2 license:gpl3))))
2315
2316(define-public plasma-firewall
2317 (package
2318 (name "plasma-firewall")
2319 (version "6.5.5")
2320 (source (origin
2321 (method url-fetch)
2322 (uri (string-append "mirror://kde/stable/plasma/"
2323 version "/" name "-"
2324 version ".tar.xz"))
2325 (sha256
2326 (base32
2327 "0p50ypr4drcxwrx783harkk37swk7lv9pp0gxs1jss6s5c8vck75"))))
2328 (build-system qt-build-system)
2329 (arguments (list #:qtbase qtbase))
2330 (native-inputs (list extra-cmake-modules))
2331 (inputs (list iproute
2332 kauth
2333 kcoreaddons
2334 kcmutils
2335 ki18n
2336 kdeclarative
2337 python
2338 qtdeclarative))
2339 (synopsis "Control Panel for system firewall")
2340 (description "This package provides interface to system firewall.")
2341 (home-page "https://invent.kde.org/plasma/plasma-firewall")
2342 (license (list license:gpl2 license:gpl3))))
2343
2344(define-public plasma-integration
2345 (package
2346 (name "plasma-integration")
2347 (version "6.5.5")
2348 (source (origin
2349 (method url-fetch)
2350 (uri (string-append "mirror://kde/stable/plasma/"
2351 version "/" name "-"
2352 version ".tar.xz"))
2353 (sha256
2354 (base32
2355 "1ig33m92i2iq18djn75mj4lfz8nxrfqm3jnwpkws2wh7vidghnmd"))))
2356 (build-system qt-build-system)
2357 (arguments
2358 (list #:qtbase qtbase
2359 #:configure-flags #~(list "-DBUILD_QT5=OFF")
2360 #:tests? #f)) ;TODO: Failing tests
2361 (native-inputs (list extra-cmake-modules pkg-config))
2362 (inputs (list breeze
2363 kconfig
2364 kconfigwidgets
2365 kguiaddons
2366 ki18n
2367 kiconthemes
2368 kio
2369 knotifications
2370 kstatusnotifieritem
2371 kwayland
2372 kwidgetsaddons
2373 kxmlgui
2374 libxcb
2375 libxcursor
2376 libxkbcommon
2377 plasma-wayland-protocols
2378 qtdeclarative
2379 qtwayland
2380 wayland
2381 xdg-desktop-portal-kde
2382 font-google-noto-sans-cjk
2383 font-google-noto-emoji
2384 font-hack))
2385 (home-page "https://invent.kde.org/plasma/plasma-integration")
2386 (synopsis
2387 "Qt Platform Theme integration plugins for the Plasma workspaces")
2388 (description
2389 "This package provides a set of plugins responsible for better
2390integration of Qt applications when running on a KDE Plasma workspace.")
2391 (license license:lgpl2.0)))
2392
2393(define-public plasma-nano
2394 (package
2395 (name "plasma-nano")
2396 (version "6.5.5")
2397 (source (origin
2398 (method url-fetch)
2399 (uri (string-append "mirror://kde/stable/plasma/"
2400 version "/plasma-nano-" version ".tar.xz"))
2401 (sha256
2402 (base32
2403 "1ppg3svbj2ykb63z2s58bl9s56f7ffa7595xbxrxn0dc7ahg5isl"))))
2404 (build-system cmake-build-system)
2405 (native-inputs (list extra-cmake-modules pkg-config qttools))
2406 (inputs (list qtbase
2407 qtdeclarative
2408 qtsvg
2409 libplasma
2410 kservice
2411 kitemmodels
2412 kwindowsystem
2413 kwayland
2414 ki18n))
2415 (arguments (list #:tests? #f))
2416 (home-page "https://plasma-mobile.org/")
2417 (synopsis "Minimal Plasma Shell package")
2418 (description
2419 "This package provides a minimal implementation of Plasma Shell.")
2420 (license license:lgpl2.0+)))
2421
2422(define-public plasma-nm
2423 (package
2424 (name "plasma-nm")
2425 (version "6.5.5")
2426 (source (origin
2427 (method url-fetch)
2428 (uri (string-append "mirror://kde/stable/plasma/"
2429 version "/" name "-" version
2430 ".tar.xz"))
2431 (sha256
2432 (base32
2433 "1862k0v2bv8g2avlmkffidy9hq4q8x2g03g8ibpb2pjzr0dny2gv"))))
2434 (build-system qt-build-system)
2435 (arguments
2436 (list #:qtbase qtbase))
2437 (native-inputs (list extra-cmake-modules pkg-config))
2438 (home-page "https://invent.kde.org/plasma/plasma-nm")
2439 ;; These packages are required by the QML modules.
2440 (propagated-inputs
2441 (list kcmutils kirigami libplasma qtdeclarative))
2442 (inputs (list kconfigwidgets
2443 kcompletion
2444 kcoreaddons
2445 kdeclarative
2446 kdbusaddons
2447 kio
2448 ki18n
2449 networkmanager-qt
2450 knotifications
2451 lz4
2452 mobile-broadband-provider-info
2453 modemmanager-qt
2454 network-manager
2455 qca-qt6
2456 kservice
2457 solid
2458 prison
2459 kwallet
2460 kwidgetsaddons
2461 kwindowsystem
2462 ksvg
2463 qcoro-qt6
2464 openconnect
2465 qtwebengine))
2466 (synopsis "Plasma applet for managing network connections")
2467 (description "This package provides Plasma applet for managing network
2468connections.")
2469 (license (list license:lgpl2.1 license:lgpl3))))
2470
2471(define-public plasma-mobile
2472 (package
2473 (name "plasma-mobile")
2474 (version "6.5.5")
2475 (source (origin
2476 (method url-fetch)
2477 (uri (string-append "mirror://kde/stable/plasma/"
2478 version "/plasma-mobile-" version ".tar.xz"))
2479 (sha256
2480 (base32
2481 "102lzxv9nwvi098cg467csh88b3pmi0kr8wcgc7nvhrl05kplzc4"))))
2482 (build-system cmake-build-system)
2483 (arguments (list #:tests? #f)) ;only small add-hoc test scripts
2484 (native-inputs (list extra-cmake-modules pkg-config qttools))
2485 (inputs (list bash-minimal
2486 eudev
2487 kauth
2488 kcmutils
2489 kdbusaddons
2490 kdeclarative
2491 kglobalaccel
2492 ki18n
2493 kio
2494 kirigami-addons
2495 kitemmodels
2496 knotifications
2497 kpipewire
2498 kwayland
2499 kwin
2500 layer-shell-qt
2501 libepoxy
2502 libkscreen
2503 libplasma
2504 libxkbcommon
2505 modemmanager-qt
2506 networkmanager-qt
2507 plasma-activities
2508 plasma-wayland-protocols
2509 plasma-workspace
2510 qcoro-qt6
2511 qtbase
2512 qtsensors
2513 qtwayland
2514 wayland))
2515 (home-page "https://plasma-mobile.org/")
2516 (synopsis
2517 "General UI components for Plasma Phone including shell, containment and applets")
2518 (description "This package provides user-friendly, privacy-enabling and
2519customizable platform for mobile devices.")
2520 (license (list license:gpl3+ license:lgpl2.1+))))
2521
2522(define-public plasma-mobile-sounds
2523 (package
2524 (name "plasma-mobile-sounds")
2525 (version "0.1")
2526 (source (origin
2527 (method url-fetch)
2528 (uri (string-append
2529 "mirror://kde/stable/plasma-mobile-sounds/"
2530 version "/plasma-mobile-sounds-" version ".tar.xz"))
2531 (sha256
2532 (base32
2533 "1br6kzicrr45vgg0ciqczxlcid21n5lfjm6zc06rw86ys7fx7bpi"))))
2534 (build-system cmake-build-system)
2535 (arguments (list #:tests? #f))
2536 (native-inputs (list extra-cmake-modules pkg-config))
2537 (home-page "https://plasma-mobile.org/")
2538 (synopsis "Sounds for Plasma Mobile devices")
2539 (description "This package provides sound files for Plasma Mobile.")
2540 (license (list license:cc0 license:cc-by4.0))))
2541
2542(define-public plasma-pa
2543 (package
2544 (name "plasma-pa")
2545 (version "6.5.5")
2546 (source (origin
2547 (method url-fetch)
2548 (uri (string-append "mirror://kde/stable/plasma/"
2549 version "/" name "-"
2550 version ".tar.xz"))
2551 (sha256
2552 (base32
2553 "11x5n4kjaa6vq4sxrwyz0vinkv714psq7yhgkz941636c30r0zk2"))))
2554 (build-system qt-build-system)
2555 (arguments (list #:qtbase qtbase
2556 ;; test require selenium-webdriver-at-spi-run
2557 #:tests? #f))
2558 (native-inputs (list extra-cmake-modules kdoctools pkg-config))
2559 (inputs (list glib
2560 kcoreaddons
2561 kconfig
2562 kcmutils
2563 kdeclarative
2564 kglobalaccel
2565 kstatusnotifieritem
2566 knotifications
2567 kwindowsystem
2568 kirigami
2569 ksvg
2570 kdbusaddons
2571 pulseaudio-qt
2572 ki18n
2573 qtdeclarative))
2574 (propagated-inputs (list libcanberra pulseaudio
2575 libplasma))
2576 (home-page "https://invent.kde.org/plasma/plasma-pa")
2577 (synopsis "Plasma applet for audio volume management using PulseAudio")
2578 (description
2579 "This package provides Plasma applet for audio volume management using
2580PulseAudio.")
2581 (license (list license:lgpl2.1 license:lgpl3))))
2582
2583(define-public plasma-pass
2584 (package
2585 (name "plasma-pass")
2586 (version "1.3.0")
2587 (source (origin
2588 (method url-fetch)
2589 (uri (string-append "mirror://kde/stable/plasma-pass/"
2590 "plasma-pass-" version ".tar.xz"))
2591 (sha256
2592 (base32
2593 "03ydwkk7qvw8hlr3phh5gzy6zf3rmh872a0n703h5dlacc4jbcwi"))))
2594 (build-system qt-build-system)
2595 (native-inputs (list extra-cmake-modules))
2596 (inputs (list ki18n kitemmodels kwindowsystem kio
2597 oath-toolkit
2598 plasma5support
2599 qgpgme))
2600 (propagated-inputs
2601 ;; QML modules need to be propagated so that QML files can find them in
2602 ;; $QML_IMPORT_PATH.
2603 (list kirigami libplasma qtdeclarative))
2604 (arguments (list #:qtbase qtbase
2605 #:tests? #f
2606 #:configure-flags #~(list "-DQT_MAJOR_VERSION=6")))
2607 (home-page "https://invent.kde.org/plasma/plasma-pass")
2608 (synopsis "Plasma applet for the Pass password manager")
2609 (description
2610 "This package provides a Plasma applet for the Pass password manager.")
2611 (license license:lgpl2.1+)))
2612
2613(define-public plasma-phonebook
2614 (package
2615 (name "plasma-phonebook")
2616 (version "24.02.0")
2617 (source (origin
2618 (method url-fetch)
2619 (uri (string-append "mirror://kde/stable/plasma-phonebook/"
2620 "plasma-phonebook-" version
2621 ".tar.xz"))
2622 (sha256
2623 (base32
2624 "1f2z3djq8q2z90vrn18k5qbiw8crhs69c5qvdnzxmp3s3f63bk4l"))))
2625 (build-system qt-build-system)
2626 (arguments (list #:qtbase qtbase
2627 #:tests? #f))
2628 (native-inputs (list extra-cmake-modules pkg-config))
2629 (inputs (list kpeople
2630 kirigami
2631 kirigami-addons
2632 kcoreaddons
2633 kcontacts
2634 qtdeclarative
2635 qtsvg
2636 qtwayland))
2637 (home-page "https://plasma-mobile.org/")
2638 (synopsis "Phonebook for Plasma Mobile devices")
2639 (description "This package provides contacts application which allows
2640adding, modifying and removing contacts.")
2641 (license license:lgpl2.0+)))
2642
2643(define-public plasma-thunderbolt
2644 (package
2645 (name "plasma-thunderbolt")
2646 (version "6.5.5")
2647 (source (origin
2648 (method url-fetch)
2649 (uri (string-append "mirror://kde/stable/plasma/"
2650 version "/" name "-"
2651 version ".tar.xz"))
2652 (sha256
2653 (base32
2654 "0ac66xxkzvw6k9dy39klxfnxkgx47qzpqhy2dj49khyi2ckq0yzg"))))
2655 (build-system qt-build-system)
2656 (arguments
2657 (list #:qtbase qtbase
2658 #:phases
2659 #~(modify-phases %standard-phases
2660 (add-before 'check 'check-setup
2661 (lambda _
2662 (setenv "HOME" (getcwd))))
2663 (replace 'check
2664 (lambda* (#:key tests? test-exclude #:allow-other-keys)
2665 (when tests?
2666 (invoke "dbus-launch" "ctest" "--output-on-failure"
2667 "-E" test-exclude)))))))
2668 (native-inputs
2669 (list dbus extra-cmake-modules))
2670 (inputs
2671 (list bolt
2672 kcmutils
2673 kcoreaddons
2674 kdbusaddons
2675 ki18n
2676 knotifications))
2677 (home-page "https://invent.kde.org/plasma/plasma-thunderbolt")
2678 (synopsis "Plasma integration for controlling Thunderbolt devices")
2679 (description "This package provides a Plasma Sytem Settings module and a
2680KDED module to handle authorization of Thunderbolt devices.")
2681 (license license:gpl3+)))
2682
2683(define-public plasma-vault
2684 (package
2685 (name "plasma-vault")
2686 (version "6.5.5")
2687 (source (origin
2688 (method url-fetch)
2689 (uri (string-append "mirror://kde/stable/plasma/" version
2690 "/" name "-" version ".tar.xz"))
2691 (sha256
2692 (base32
2693 "0w7sraf7dq5rksqqkg43sa11ln9jksg7lkv2531vfv5wcgscy79x"))))
2694 (build-system qt-build-system)
2695 (native-inputs (list extra-cmake-modules pkg-config))
2696 ;; These packages are required by the QML modules.
2697 (propagated-inputs
2698 (list kirigami kitemmodels libplasma qtdeclarative))
2699 (inputs (list kio
2700 ki18n
2701 kconfig
2702 plasma-activities
2703 kdbusaddons
2704 kiconthemes
2705 libksysguard
2706 networkmanager-qt
2707
2708 fuse
2709 gocryptfs))
2710 (arguments
2711 (list
2712 #:qtbase qtbase
2713 #:tests? #f
2714 #:phases
2715 #~(modify-phases %standard-phases
2716 (add-after 'unpack 'patch
2717 (lambda* (#:key inputs #:allow-other-keys)
2718 (let ((fusermount (search-input-file inputs "/bin/fusermount3"))
2719 (gocryptfs (search-input-file inputs "/bin/gocryptfs")))
2720 (substitute* "kded/engine/fusebackend_p.cpp"
2721 (("\"fusermount\"")
2722 (string-append "\"" fusermount "\"")))
2723 (substitute* "kded/engine/backends/gocryptfs/gocryptfsbackend.cpp"
2724 (("\"gocryptfs\"")
2725 (string-append "\"" gocryptfs "\"")))))))))
2726 (home-page "https://invent.kde.org/plasma/plasma-vault")
2727 (synopsis "Plasma applet and services for creating encrypted vaults")
2728 (description "Provides Plasma applet and services for creating encrypted
2729vaults.")
2730 (license (list license:gpl2 license:gpl3))))
2731
2732(define-public plasma-systemmonitor
2733 (package
2734 (name "plasma-systemmonitor")
2735 (version "6.5.5")
2736 (source (origin
2737 (method url-fetch)
2738 (uri (string-append "mirror://kde/stable/plasma/" version "/"
2739 name "-" version ".tar.xz"))
2740 (sha256
2741 (base32
2742 "1zpi7v9mmnwvd0cy8cinmy0583m1dbkgg1lami9jn3sibnlkzscb"))))
2743 (build-system qt-build-system)
2744 (native-inputs (list extra-cmake-modules))
2745 ;; These packages are required by the QML modules.
2746 (propagated-inputs
2747 (list kdeclarative
2748 kiconthemes
2749 kirigami
2750 kitemmodels
2751 knewstuff
2752 kquickcharts
2753 qtdeclarative))
2754 (inputs (list ki18n
2755 kconfig
2756 kcrash
2757 kservice
2758 kglobalaccel
2759 kio
2760 kdbusaddons
2761 kpackage
2762 kirigami-addons
2763 ksystemstats
2764 libksysguard
2765 qqc2-desktop-style
2766 qtwayland))
2767 (arguments
2768 (list #:qtbase qtbase
2769 #:tests? #f))
2770 (synopsis "System sensors, process information and other system resources
2771monitor")
2772 (description "This package provides an interface for monitoring system
2773sensors, process information and other system resources.")
2774 (home-page "https://invent.kde.org/plasma/plasma-systemmonitor")
2775 (license (list license:gpl2 license:gpl3))))
2776
2777(define-public plasma-welcome
2778 (package
2779 (name "plasma-welcome")
2780 (version "6.5.5")
2781 (source (origin
2782 (method url-fetch)
2783 (uri (string-append "mirror://kde/stable/plasma/"
2784 version "/plasma-welcome"
2785 "-"
2786 version ".tar.xz"))
2787 (sha256
2788 (base32
2789 "0809w105akkz9dyxdcav1dx86d88hc8dv82pd1w7y1076nm9rqij"))))
2790 (build-system qt-build-system)
2791 (native-inputs
2792 (list extra-cmake-modules pkg-config))
2793 (inputs
2794 (list kcoreaddons
2795 kdbusaddons
2796 kdeclarative
2797 ki18n
2798 kio
2799 kconfigwidgets
2800 kcmutils
2801 ksvg
2802 kirigami
2803 kirigami-addons
2804 knotifications
2805 kservice
2806 knewstuff
2807 kaccounts-integration
2808 signond-qt6
2809 kuserfeedback
2810 libaccounts-qt6
2811 kwindowsystem
2812 networkmanager-qt
2813 libplasma
2814 qtdeclarative
2815 qtsvg
2816 qtwayland))
2817 (arguments
2818 (list #:qtbase qtbase
2819 #:tests? #f))
2820 (synopsis "Plasma welcome screen")
2821 (description
2822 "This package provides a wizard for Plasma to configure settings.")
2823 (home-page "https://invent.kde.org/plasma/plasma-welcome")
2824 (license (list license:gpl2 license:gpl3))))
2825
2826(define-public plasma-workspace
2827 (package
2828 (name "plasma-workspace")
2829 (version "6.5.5")
2830 (source (origin
2831 (method url-fetch)
2832 (uri (string-append "mirror://kde/stable/plasma/" version
2833 "/" name "-" version ".tar.xz"))
2834 (sha256
2835 (base32
2836 "1m0zad6rcc8wjjpcpi1nxzz8h99d4hwxj7yfdm0jg7nxpcxpdc19"))))
2837 (build-system qt-build-system)
2838 (native-inputs (list extra-cmake-modules kdoctools pkg-config qtsvg
2839 qttools
2840 xorg-server-for-tests
2841 python-minimal
2842 python-pygobject))
2843 ;; As required by LibTaskManagerConfig.cmake and
2844 ;; LibNotificationManagerConfig.cmake.
2845 (propagated-inputs (list kitemmodels))
2846 (inputs (list appmenu-gtk-module
2847 appstream-qt6
2848 baloo
2849 breeze
2850 breeze-icons
2851 dbus
2852 eudev
2853 fontconfig
2854 gmp
2855 gpsd
2856 icu4c
2857 iso-codes/pinned
2858 karchive
2859 kauth
2860 kcmutils
2861 kcoreaddons
2862 kcrash
2863 kdbusaddons
2864 kdeclarative
2865 kded
2866 kdesu
2867 kglobalaccel
2868 kglobalacceld
2869 kguiaddons
2870 kholidays
2871 ki18n
2872 kiconthemes
2873 kidletime
2874 kio
2875 kio-extras
2876 kirigami
2877 kirigami-addons
2878 kirigami-addons
2879 knewstuff
2880 knighttime
2881 knotifications
2882 knotifyconfig
2883 kpackage
2884 kpeople
2885 kpipewire
2886 kquickcharts
2887 kquickcharts
2888 krunner
2889 kscreen ;qml dependency
2890 kscreenlocker
2891 kstatusnotifieritem
2892 ksvg
2893 ktexteditor
2894 ktextwidgets
2895 kuserfeedback
2896 kwallet
2897 kwayland
2898 kwin
2899 layer-shell-qt
2900 libkexiv2
2901 libkscreen
2902 libksysguard
2903 libplasma
2904 libqalculate
2905 libsm
2906 libxcrypt
2907 libxcursor
2908 libxft
2909 libxkbcommon
2910 libxrender
2911 libxtst
2912 lsof
2913 mpfr
2914 networkmanager-qt
2915 packagekit-qt6
2916 phonon
2917 pipewire
2918 plasma-activities
2919 plasma-activities-stats
2920 plasma-nm ;qml dependency
2921 plasma-pa ;qml dependency
2922 plasma-wayland-protocols
2923 plasma-workspace-wallpapers
2924 plasma5support
2925 polkit-qt6
2926 prison
2927 qcoro-qt6
2928 qqc2-desktop-style
2929 qt5compat
2930 qtdeclarative
2931 qtlocation
2932 qtpositioning
2933 qtshadertools
2934 qtsvg
2935 qttools
2936 qtwayland
2937 ucd
2938 wayland
2939 wayland-protocols
2940 xcb-util
2941 xcb-util-cursor
2942 xcb-util-image
2943 xcb-util-keysyms
2944 xdotool ;for X11
2945 xmessage
2946 xrdb
2947 xsetroot
2948 zlib))
2949 (arguments
2950 (list #:qtbase qtbase
2951 #:configure-flags
2952 #~(list
2953 ;; libkmpris/autotests/CMakeLists.txt find it from
2954 ;; KDE_INSTALL_FULL_LIBEXECDIR, But we are install to itself prefix.
2955 ;; so we set it.
2956 (string-append "-Dkglobalacceld_PATH="
2957 #$(this-package-input "kglobalacceld")
2958 "/libexec/kglobalacceld"))
2959 #:phases
2960 #~(modify-phases %standard-phases
2961 (add-after 'unpack 'patch-qttools-path
2962 (lambda* (#:key inputs #:allow-other-keys)
2963 (let ((qttools #$(this-package-input "qttools")))
2964 ;; QT_INSTALL_BINS refers to qtbase, but qdbus is in
2965 ;; qttools.
2966 (substitute* "CMakeLists.txt"
2967 (("ecm_query_qt\\(QtBinariesDir QT_INSTALL_BINS\\)")
2968 (string-append "set(QtBinariesDir \"" qttools
2969 "/bin\")"))))))
2970 (delete 'check)
2971 (add-after 'install 'check-after-install
2972 (lambda* (#:key tests? #:allow-other-keys)
2973 (when tests?
2974 (setenv "DISPLAY" ":1")
2975 (system "Xvfb +extension GLX :1 &")
2976 (setenv "HOME" (getcwd))
2977 (setenv "XDG_RUNTIME_DIR" (getcwd))
2978 (setenv "XDG_CACHE_HOME" (getcwd))
2979 (setenv "QT_QPA_PLATFORM" "offscreen")
2980 (setenv "QT_PLUGIN_PATH"
2981 (string-append #$output
2982 "/lib/qt6/plugins:"
2983 (getenv "QT_PLUGIN_PATH")))
2984 (setenv "QML_IMPORT_PATH"
2985 (string-append #$output
2986 "/lib/qt6/qml:"
2987 (getenv "QML_IMPORT_PATH")))
2988 (invoke "dbus-launch" "ctest"
2989 "--output-on-failure"
2990 "--rerun-failed"
2991 "-E"
2992 (string-join
2993 (list
2994 ;; Fails on an Apple M1 (aarch64) with the following error:
2995 ;; Compared values are not the same "2'\uFFFD''\uFFFD'"
2996 #$@(if (target-aarch64?)
2997 #~("calculatorrunnertest")
2998 #~())
2999 "appstreamtest"
3000 "dbusservicewatchertest"
3001 "fetchinitialplayertest"
3002 "keystatetest"
3003 "klippertest"
3004 "locationsrunnertest"
3005 "lockedtest"
3006 "mediakeystest"
3007 "mprisdeclarativetest"
3008 "shelltest"
3009 "tasksmodeltest"
3010 "tasktoolstest"
3011
3012 ;; Failure in TestDesktop::testRename:
3013 ;; 'spyFileRenamed.count() >= 1' returned FALSE.
3014 "testdesktop"
3015
3016 "testimagebackend"
3017 "testimagefinder"
3018 "testimagefrontend"
3019 "testimagelistmodel"
3020 "testimageproxymodel"
3021 "testpackageimagelistmodel"
3022 "testslidemodel"
3023 "tst_triangleFilter"
3024
3025 "dbusmethodcalltest"
3026 "klipper-testHistoryCycler"
3027 "klipper-testHistoryModel"
3028 "klipper_v3migrationtest"
3029 "testrunnermodel"
3030 "dbussignalwatchertest"
3031 "dbuspropertiestest"
3032 "testdesktop")
3033 "|")))))
3034 ;; share/dbus-1/system-services have same name file
3035 ;; when dbus-root-service-type merge it, wail report
3036 ;; "file exists".
3037 (add-after 'install 'remove-dbus-service
3038 (lambda _
3039 (delete-file
3040 (string-append
3041 #$output "/share/dbus-1/services/org.kde.fontinst.service")))))))
3042 (home-page "https://invent.kde.org/plasma/plasma-workspace")
3043 (synopsis "Plasma workspace components")
3044 (description
3045 "Workspaces provide support for KDE Plasma Widgets, integrated search,
3046hardware management, and a high degree of customizability.")
3047 (license (list license:gpl2 license:gpl3))))
3048
3049(define-public plasma-workspace-wallpapers
3050 (package
3051 (name "plasma-workspace-wallpapers")
3052 (version "6.5.5")
3053 (source (origin
3054 (method url-fetch)
3055 (uri (string-append "mirror://kde/stable/plasma/" version
3056 "/" name "-" version ".tar.xz"))
3057 (sha256
3058 (base32
3059 "1cd0ygsvqd87m4jsfbyl9d68wdvjlkl0lims5y65sazy6yjgfnav"))))
3060 (build-system cmake-build-system)
3061 (arguments (list #:tests? #f))
3062 (native-inputs (list extra-cmake-modules))
3063 (home-page "https://invent.kde.org/plasma/plasma-workspace-wallpapers")
3064 (synopsis "Wallpapers for the KDE desktop")
3065 (description
3066 "This package provides wallpapers for the KDE desktop.")
3067 (license license:lgpl3+)))
3068
3069(define-public print-manager
3070 (package
3071 (name "print-manager")
3072 (version "6.5.5")
3073 (source
3074 (origin
3075 (method url-fetch)
3076 (uri (string-append "mirror://kde/stable/plasma/" version
3077 "/print-manager-" version ".tar.xz"))
3078 (sha256
3079 (base32 "09dsz1hqvfpspskgdrbf341xp6rark9rq6n38z67lcbs7vaqc11s"))))
3080 (build-system qt-build-system)
3081 (native-inputs
3082 (list extra-cmake-modules))
3083 (inputs
3084 (list cups
3085 kcmutils
3086 kconfig
3087 kconfigwidgets
3088 kcoreaddons
3089 kdbusaddons
3090 kirigami
3091 ki18n
3092 kio
3093 knotifications
3094 kwidgetsaddons
3095 kwindowsystem
3096 libplasma
3097 qtdeclarative
3098 qtwayland))
3099 (arguments
3100 (list #:qtbase qtbase
3101 #:tests? #f))
3102 (home-page "https://invent.kde.org/plasma/print-manager")
3103 (synopsis "Manage print jobs and printers")
3104 (description
3105 "This package provides printing management for KDE.")
3106 (license license:gpl2+)))
3107
3108(define-public polkit-kde-agent
3109 (package
3110 (name "polkit-kde-agent")
3111 (version "6.5.5")
3112 (source (origin
3113 (method url-fetch)
3114 (uri (string-append "mirror://kde/stable/plasma/" version "/"
3115 name "-1-" version ".tar.xz"))
3116 (sha256
3117 (base32
3118 "0jix36pdq9q5pwx91q6bbzzrv0rx7l5yj6m0ww2ymh2lbdz84pg7"))))
3119 (build-system qt-build-system)
3120 (arguments (list #:qtbase qtbase
3121 #:tests? #f))
3122 (native-inputs (list extra-cmake-modules))
3123 (inputs (list kcoreaddons
3124 kcrash
3125 kdbusaddons
3126 kiconthemes
3127 kirigami
3128 knotifications
3129 kwidgetsaddons
3130 kwindowsystem
3131 polkit-qt6
3132 qtdeclarative
3133 ki18n))
3134 (synopsis "Polkit authentication UI for Plasma")
3135 (description
3136 "This package contains a daemon providing a Polkit authentication
3137UI for Plasma")
3138 (home-page "https://invent.kde.org/plasma/polkit-kde-agent-1")
3139 (properties '((upstream-name . "polkit-kde-agent-1")))
3140 (license license:gpl2+)))
3141
3142(define-public powerdevil
3143 (package
3144 (name "powerdevil")
3145 (version "6.5.5")
3146 (source (origin
3147 (method url-fetch)
3148 (uri (string-append "mirror://kde/stable/plasma/" version
3149 "/" name "-" version ".tar.xz"))
3150 (sha256
3151 (base32
3152 "1r5zbvizg6r889zspaswb7jmbs4imlrnrn0xay3dz76z0m6w2rqz"))))
3153 (build-system qt-build-system)
3154 (native-inputs (list extra-cmake-modules qttools pkg-config))
3155 (inputs (list bluez-qt
3156 ddcutil
3157 eudev
3158 glib
3159 kauth
3160 kcmutils
3161 kconfig
3162 kcrash
3163 kcrash
3164 kdbusaddons
3165 kglobalaccel
3166 ki18n
3167 kidletime
3168 kio
3169 kirigami
3170 kitemmodels
3171 knotifications
3172 knotifyconfig
3173 krunner
3174 kscreen
3175 kwayland
3176 kxmlgui
3177 layer-shell-qt
3178 libcap
3179 libkscreen
3180 libplasma
3181 libxkbcommon
3182 network-manager
3183 networkmanager-qt
3184 plasma-activities
3185 plasma-wayland-protocols
3186 plasma-workspace
3187 qcoro-qt6
3188 qtwayland
3189 solid
3190 wayland))
3191 (arguments (list #:qtbase qtbase
3192 #:phases #~(modify-phases %standard-phases
3193 (add-before 'check 'setenv
3194 (lambda _
3195 (setenv "HOME" (getcwd)))))))
3196 (synopsis "Manage power consumption")
3197 (description "This package provides the power consumption settings
3198of a Plasma shell.")
3199 (home-page "https://invent.kde.org/plasma/powerdevil")
3200 (license license:gpl2+)))
3201
3202(define-public spectacle
3203 (package
3204 (name "spectacle")
3205 (version "6.5.5")
3206 (source
3207 (origin
3208 (method url-fetch)
3209 (uri (string-append "mirror://kde/stable/plasma/" version
3210 "/spectacle-" version ".tar.xz"))
3211 (sha256
3212 (base32 "1fljfn0lrnbhwfar07777f8gm6nvzrykbfzpfrk36l0ir2w2m50x"))))
3213 (build-system qt-build-system)
3214 (arguments
3215 (list #:qtbase qtbase
3216 #:tests? #f)) ;no tests
3217 (native-inputs
3218 (list extra-cmake-modules kdoctools))
3219 (inputs
3220 (list kconfig
3221 kcoreaddons
3222 kcrash
3223 kdbusaddons
3224 kglobalaccel
3225 kguiaddons
3226 ki18n
3227 kio
3228 kirigami
3229 knotifications
3230 kpipewire
3231 kstatusnotifieritem
3232 kwidgetsaddons
3233 kwindowsystem
3234 kxmlgui
3235 opencv
3236 prison
3237 purpose
3238 layer-shell-qt
3239 qtdeclarative
3240 qtmultimedia
3241 qtwayland
3242 wayland
3243 wayland-protocols
3244 plasma-wayland-protocols
3245 xcb-util
3246 xcb-util-cursor
3247 xcb-util-image
3248 libxkbcommon))
3249 (home-page "https://apps.kde.org/spectacle/")
3250 (synopsis "Screenshot capture utility for KDE")
3251 (description "Spectacle is a screenshot taking utility for the KDE.")
3252 (license license:gpl2+)))
3253
3254(define-public system-settings
3255 (package
3256 (name "system-settings")
3257 (version "6.5.5")
3258 (source (origin
3259 (method url-fetch)
3260 (uri (string-append "mirror://kde/stable/plasma/" version
3261 "/systemsettings-" version ".tar.xz"))
3262 (sha256
3263 (base32
3264 "1in23i5zwfkg1nh5nl699qx9f0f2jr996gplgrz7ibbbwq3zwxw6"))))
3265 (build-system qt-build-system)
3266 (native-inputs (list extra-cmake-modules))
3267 (inputs (list kaccounts-integration
3268 kaccounts-providers
3269 kauth
3270 kcrash
3271 kitemviews
3272 kitemmodels
3273 kcmutils
3274 ki18n
3275 kio
3276 kservice
3277 kiconthemes
3278 kwidgetsaddons
3279 kwindowsystem
3280 kxmlgui
3281 kdbusaddons
3282 kconfig
3283 kpackage
3284 plasma-activities
3285 plasma-activities-stats
3286 kguiaddons
3287 kirigami
3288 knewstuff
3289 knotifications
3290 krunner
3291 plasma-workspace
3292 qtdeclarative
3293 qtwayland
3294 qtwebengine))
3295 (arguments (list #:qtbase qtbase
3296 #:tests? #f)) ; no tests
3297 (synopsis "Control center to configure Plasma Desktop")
3298 (description "This package provides configuration UI for Plasma Desktop.")
3299 (home-page "https://invent.kde.org/plasma/systemsettings")
3300 (properties '((upstream-name . "systemsettings")))
3301 (license license:gpl2+)))
3302
3303(define-public wacomtablet
3304 (package
3305 (name "wacomtablet")
3306 (version "6.5.5")
3307 (source (origin
3308 (method url-fetch)
3309 (uri
3310 (string-append "mirror://kde/stable/plasma/" version
3311 "/wacomtablet-" version ".tar.xz"))
3312 (sha256
3313 (base32
3314 "1lk7nk0n1x1i2cn5c4p5mywhxm8v91jnkkcdbczqrs443579a35y"))))
3315 (build-system qt-build-system)
3316 (arguments
3317 (list #:qtbase qtbase
3318 #:test-exclude
3319 (string-append "("
3320 (string-join '("Test.KDED.DBusTabletService"
3321 "Test.KDED.TabletHandler"
3322 "Test.KDED.XInputAdaptor"
3323 "Test.KDED.XsetWacomAdaptor")
3324 "|")
3325 ")")
3326 #:phases
3327 #~(modify-phases %standard-phases
3328 (replace 'check
3329 (lambda* (#:key tests? (test-exclude "") #:allow-other-keys)
3330 (when tests?
3331 (invoke "dbus-launch" "ctest" "-E" test-exclude)))))))
3332 ;; These packages are required by the QML modules of the plasmoid.
3333 (propagated-inputs (list kcmutils
3334 kconfig
3335 kirigami
3336 ksvg
3337 libplasma
3338 plasma5support
3339 qtdeclarative))
3340 (native-inputs (list dbus extra-cmake-modules kdoctools pkg-config))
3341 (inputs (list kcoreaddons
3342 ki18n
3343 kio
3344 kglobalaccel
3345 kxmlgui
3346 kwidgetsaddons
3347 kwindowsystem
3348 knotifications
3349 kdbusaddons
3350 libwacom
3351 libxi
3352 libxkbcommon
3353 qtwayland
3354 xf86-input-wacom))
3355 (home-page "https://invent.kde.org/plasma/wacomtablet")
3356 (synopsis "KDE GUI for the Wacom Linux Drivers")
3357 (description "Provides KDE GUI for the Wacom Linux Drivers.")
3358 (license license:gpl2+)))