summaryrefslogtreecommitdiff
path: root/gnu/packages/kde-xyz.scm
blob: a08f663828747a17e0949b0f1fa30a06659b7acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2026 Sughosha <sughosha@disroot.org>
;;; Copyright © 2026 nick <nicholascaitong@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages kde-xyz)
  #:use-module (guix build-system cmake)
  #:use-module (guix build-system copy)
  #:use-module (guix build-system pyproject)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:use-module (gnu packages audio)
  #:use-module (gnu packages base)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages gawk)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages kde-frameworks)
  #:use-module (gnu packages kde-plasma)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-web)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages xorg))

(define-public kde-material-you-colors
  (package
    (name "kde-material-you-colors")
    ;; This commit fixes loading the widget on Qt version 6.9 or older.
    (properties '((commit . "72421299789ce863d902dec38daaadaddc378b2e")
                  (revision . "0")))
    (version (git-version "2.2.0"
                          (assoc-ref properties 'revision)
                          (assoc-ref properties 'commit)))
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/luisbocanegra/kde-material-you-colors")
              (commit (assoc-ref properties 'commit))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0kp9ri500pn3x3pwjdik0ciqqpdk8yy749ldmasxjwfvk9ydzjjd"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f ;no tests exist in source
      #:phases
      #~(modify-phases %standard-phases
          ;; XXX: stty: 'standard input': Inappropriate ioctl for device
          (delete 'sanity-check)
          (add-after 'unpack 'fix-commands
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "src/kde_material_you_colors/utils/utils.py"
                (("\"whereis")
                 (string-append "\""
                                (search-input-file inputs "/bin/whereis")))
                (("\"stty")
                 (string-append "\""
                                (search-input-file inputs "/bin/stty"))))
              (substitute* "src/kde_material_you_colors/utils/kwin_utils.py"
                (("\"gdbus")
                 (string-append "\""
                                (search-input-file inputs "/bin/gdbus")))))))))
    (native-inputs (list python-setuptools))
    (inputs (list coreutils-minimal       ;for stty
                  `(,glib "bin")          ;for gdbus
                  python-dbus
                  python-materialyoucolor
                  python-numpy
                  python-pillow
                  python-magic
                  python-pywal16          ;optional
                  util-linux))            ;for whereis
    (home-page "https://github.com/luisbocanegra/kde-material-you-colors")
    (synopsis "Automatic Material You colors generator for the KDE Plasma")
    (description
     "KDE Material You Colors is an automatic Material You colors generator
from your wallpaper for KDE Plasma.")
    (license license:gpl3)))

(define-public kwin-effects-better-blur-dx
  (package
    (name "kwin-effects-better-blur-dx")
    (version "2.4.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/xarblu/kwin-effects-better-blur-dx")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "11rn887ll3p3cnjbqlvwnaqb0drfc1a6h4f224j7wk0dzq6ymqvw"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f)) ;no tests
    (native-inputs
     (list extra-cmake-modules))
    (inputs
     (list kcmutils
           kcolorscheme
           kconfig
           kcoreaddons
           kdecoration
           ki18n
           kwidgetsaddons
           kwin
           kwindowsystem
           libepoxy
           libx11
           libxcb
           qtbase
           qtdeclarative
           wayland))
    (home-page "https://github.com/xarblu/kwin-effects-better-blur-dx")
    (synopsis "Fork of the KDE Plasma 6 blur effect")
    (description
     "Better Blur DX is a fork of the KDE Plasma 6 blur effect with additional
features and bug fixes that haven't been patched yet.

Features:
@itemize
@item Force blur
@item Adjustable blur brightness, contrast and satuarion
@item Adjustable corner radius
@item Refraction
@end itemize

Bug fixes:
@itemize
@item Fix for blur that may sometimes disappear during animations
@item Fix for transparent color schemes not working properly with the Breeze
 application style
@end itemize")
    (license license:gpl2+)))

(define-public kwin-effects-rounded-corners
  (package
    (name "kwin-effects-rounded-corners")
    (version "0.8.6")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/matinlotfali/KDE-Rounded-Corners")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "03d13vg7qcbw3sc1j25r5dilhyinjr58k3487zc1cn18smp2iydz"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f)) ;requires a running kwin session
    (native-inputs
     (list extra-cmake-modules))
    (inputs
     (list kcmutils
           kconfigwidgets
           ki18n
           kwin
           kwindowsystem
           libepoxy
           libxcb
           qtbase
           wayland))
    (home-page "https://github.com/matinlotfali/KDE-Rounded-Corners")
    (synopsis "Round the corners for your windows in KDE Plasma")
    (description
     "This package provides a KWin effect for KDE Plasma that rounds the
corners of your windows and adds an outline around them without much affecting
the performance.")
    (license license:gpl3+)))

(define-public plasma-applet-chatai
  (package
    (name "plasma-applet-chatai")
    (version "2.2.3")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/DenysMb/ChatAI-Plasmoid")
          (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0wbqwngwczzdivrz5yp6jwwskskh6fhsz9gld51q0qwg98zfpg5q"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:install-plan
      #~'(("." "share/plasma/plasmoids/ChatAI-Plasmoid"
           #:include-regexp ("metadata\\.json" "contents/")))))
    (propagated-inputs
     (list kdeclarative
           kcmutils
           kirigami
           libplasma
           knotifications
           qtbase
           qtdeclarative
           qtwebengine))
    (home-page "https://store.kde.org/p/2163340")
    (synopsis "Range of chatbots for KDE Plasma")
    (description
     "This package provides a widget for KDE Plasma that provides a range of
chatbots such as @uref{https://duck.ai/, Duck.ai}.")
    (license license:gpl2+)))

(define-public plasma-applet-kde-material-you-colors
  (package
    (inherit kde-material-you-colors)
    (name "plasma-applet-kde-material-you-colors")
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f ;no tests
      #:configure-flags
      #~(list "-DINSTALL_PLASMOID=ON")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-commands
            (lambda* (#:key inputs #:allow-other-keys)
              (with-directory-excursion "src"
                (with-directory-excursion "plasmoid/package/contents/ui"
                  (substitute* "FullRepresentation.qml"
                    ;; Check for the running process under the real command
                    ;; name.
                    (("(ps .* \\+ )execName" _ keep)
                     (string-append keep "\".\" + execName + \"-real\""))
                    (("findExecutable\\(execName\\)")
                     (string-append "findExecutable(execName, \""
                                    #$(this-package-input
                                       "kde-material-you-colors")
                                    "/bin\")"))
                    (("\\/usr") #$output)
                    (("(\"|\\$\\()find " _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/find")
                                    " "))
                    (("(-exec |')test" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/test")))
                    (("(-exec |\\$\\()grep" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/grep")))
                    (("(-exec )sh" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/sh")))
                    (("(\\| )wc" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/wc")))
                    (("(do )echo" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/echo")))
                    (("(\\$\\()basename" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs
                                                       "/bin/basename")))
                    (("(\\| )sed" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/sed")))
                    (("(\\| )sort" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/sort")))
                    (("(')ps" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/ps")))
                    (("(\\| )awk" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/awk")))
                    (("(\")sha1sum" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs "/bin/sha1sum")))
                    (("(\")cat" _ prefix)
                     (string-append prefix
                                    (search-input-file inputs
                                                       "/bin/cat")))))))))))
    (propagated-inputs
     (list kiconthemes
           kirigami
           ksvg
           libplasma
           plasma5support
           qt5compat
           qtbase
           qtdeclarative))
    (native-inputs
     (list extra-cmake-modules))
    (inputs
     (list bash-minimal
           coreutils-minimal
           findutils
           gawk
           grep
           kde-material-you-colors
           kservice
           plasma-workspace
           procps
           sed))
    (home-page "https://store.kde.org/p/2136963")))

(define-public plasma-applet-kurve
  (package
    (name "plasma-applet-kurve")
    (version "3.5.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/luisbocanegra/kurve")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0vghdlrrdc2fc8qrph9annmjcg2ibyfy2mp3xqvvn4f3y3vgscl3"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f ;no tests
      #:configure-flags
      #~(list "-DBUILD_PLUGIN=ON"
              "-DINSTALL_PLASMOID=ON")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-paths
            (lambda* (#:key inputs #:allow-other-keys)
              (with-directory-excursion "package/contents/ui"
                (substitute* "Cava.qml"
                  (("(exec )cava" _ keep)
                   (string-append keep (which "cava"))))
                (substitute* "components/ProcessMonitorPrimary.qml"
                  (("\"sh\"")
                   (string-append "\"" (which "sh") "\""))))))
          (add-after 'install 'make-tools-executable
            (lambda _
              (for-each (lambda (file)
                          (chmod file #o755))
                        (find-files (string-append #$output
                                                   "/share/plasma/plasmoids/"
                                                   "luisbocanegra."
                                                   "audio.visualizer"
                                                   "/contents/ui/tools"))))))))
    (propagated-inputs
     (list kcmutils
           ki18n
           kirigami
           libplasma
           plasma5support
           python-websockets
           plasma-workspace
           qtbase
           qtdeclarative
           qtwebsockets))
    (native-inputs
     (list extra-cmake-modules))
    (inputs
     (list bash-minimal cava python-minimal))
    (home-page "https://store.kde.org/p/2299506")
    (synopsis "Audio visualizer widget for KDE Plasma")
    (description
     "This package provides an audio visualizer widget, powered by @code{cava},
for KDE Plasma.")
    (license license:gpl3+)))

(define-public plasma-applet-panel-colorizer
  (package
    (name "plasma-applet-panel-colorizer")
    (version "6.8.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/luisbocanegra/plasma-panel-colorizer")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "00fpmpgzifbkjjg0r7yksmgmhj0a72x3kkiird6k2yipxr1kvxkq"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f ;no tests
      #:configure-flags
      #~(list "-DBUILD_PLUGIN=ON"
              "-DINSTALL_PLASMOID=ON")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'make-tools-executable
            (lambda _
              (for-each (lambda (file)
                          (chmod file #o755))
                        (find-files (string-append #$output
                                                   "/share/plasma/plasmoids/"
                                                   "luisbocanegra."
                                                   "panel.colorizer"
                                                   "/contents/ui/tools")))))
          (add-after 'install 'wrap-tools
            (lambda _
              (for-each (lambda (file)
                          (wrap-program file
                            `("PATH" ":" prefix
                              (,#$(file-append (this-package-input
                                                "coreutils-minimal")
                                               "/bin")
                               ,#$(file-append (gexp-input (this-package-input
                                                            "glib")
                                                           "bin")
                                               "/bin")))))
                        (find-files (string-append #$output
                                                   "/share/plasma/plasmoids/"
                                                   "luisbocanegra."
                                                   "panel.colorizer"
                                                   "/contents/ui/tools")
                                    "\\.sh$")))))))
    (native-inputs
     (list extra-cmake-modules))
    (propagated-inputs
     (list kcmutils
           ki18n
           kirigami
           ksvg
           libplasma
           plasma5support
           plasma-activities
           plasma-workspace
           python-dbus
           python-pygobject
           qtbase
           qt5compat
           qtdeclarative))
    (inputs
     (list bash-minimal
           coreutils-minimal
           `(,glib "bin")    ;for gdbus
           python-minimal-wrapper))
    (home-page "https://store.kde.org/p/2130967")
    (synopsis "Panel customizer for KDE Plasma")
    (description
     "This package provides Latte-Dock and WM status bar customization features
for KDE Plasma panels.")
    (license (list license:lgpl2.1+ license:gpl2+))))

(define-public plasma-applet-plasmusic-toolbar
  (package
    (name "plasma-applet-plasmusic-toolbar")
    (version "4.3.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/ccatterina/plasmusic-toolbar")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "16c4dr48a5nhqwfx4bimlyx37wbacwqvz84k2l3lw55cklmj7gxd"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:install-plan
      #~'(("src" "/share/plasma/plasmoids/plasmusic-toolbar/"
           #:include-regexp ("/contents/" "metadata\\.json")))))
    (propagated-inputs
     (list kcmutils
           kcoreaddons
           kiconthemes
           kirigami
           ksvg
           libplasma
           plasma-workspace
           qtbase
           qtdeclarative
           qt5compat))
    (home-page "https://store.kde.org/p/2128143")
    (synopsis "Music toolbar widget for KDE Plasma")
    (description
     "Plasmusic Toolbar is a KDE Plasma widget that displays the currently
playing track and provides playback controls.")
    (license license:gpl3)))

(define-public plasma-applet-window-buttons
  (package
    (name "plasma-applet-window-buttons")
    (properties '((revision . "0")
                  ;; The latest tagged version does not support KDecoration3.
                  ;; So this commit is picked from the master branch.
                  (commit . "b114cf23da4411d19c1f1600a98bfab5369fd950")))
    (version (git-version "0.14.0"
                          (assoc-ref properties 'revision)
                          (assoc-ref properties 'commit)))
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/moodyhunter/applet-window-buttons6")
          (commit (assoc-ref properties 'commit))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "165prymhrfk6nqq357qcq8yzvb5lakwaf1zs53krl1q4jgvizamf"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f ;no tests
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-cmake
            (lambda _
              ;; kdecoration headers include C++20 spaceship operator.
              (substitute* "CMakeLists.txt"
                (("CMAKE_CXX_STANDARD 14") "CMAKE_CXX_STANDARD 20"))
              (substitute* "libappletdecoration/CMakeLists.txt"
                (("(kwin_xml )\\/usr" _ keep)
                 (string-append keep #$(this-package-input "kwin")))))))))
    (native-inputs
     (list extra-cmake-modules))
    (propagated-inputs
     (list kcmutils
           kconfigwidgets
           kcoreaddons
           kdeclarative
           kdecoration
           ki18n
           kirigami
           kitemmodels
           kpackage
           kservice
           ksvg
           kwin
           libplasma
           plasma-workspace
           qtbase
           qtdeclarative))
    (home-page "https://github.com/moodyhunter/applet-window-buttons6")
    (synopsis "Window buttons widget for KDE Plasma")
    (description
     "This package provides a widget for KDE Plasma that shows window
buttons of the active window.")
    (license license:gpl2+)))

(define-public plasma-applet-window-title
  (package
    (name "plasma-applet-window-title")
    (version "0.21")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/dhruv8sh/plasma6-window-title-applet")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1vrm5v09gpnd0l1ik7hj2x1980z9x0qss70rw17vivvv5iidaqnq"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:install-plan
      #~'(("." "/share/plasma/plasmoids/org.kde.windowtitle"
           #:include-regexp ("/contents/" "metadata.json")))))
    (propagated-inputs
     (list kirigami
           libplasma
           plasma-activities
           plasma-workspace
           qtdeclarative))
    (home-page "https://github.com/dhruv8sh/plasma6-window-title-applet")
    (synopsis "Window title widget for KDE Plasma")
    (description
     "This package provides a widget for KDE Plasma that shows the application
title and the icon of the active window.")
    (license license:gpl2+)))

(define-public plasma-wallpaper-active-blur
  (package
    (name "plasma-wallpaper-active-blur")
    (version "3.5.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url "https://github.com/bouteillerAlan/blurredwallpaper")
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "066jbvg51zwsmhk67wnlbirgb6ynjkbr5fi230dm5pmhkb8c8isg"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:install-plan
      #~'(("a2n.blur" "/share/plasma/wallpapers/a2n.blur"))))
    (propagated-inputs
     (list kcmutils
           kirigami
           kdeclarative
           knewstuff
           kwindowsystem
           libplasma
           plasma-activities
           plasma5support
           plasma-workspace
           qt5compat
           qtbase
           qtdeclarative))
    (home-page "https://github.com/bouteillerAlan/blurredwallpaper")
    (synopsis "Blurred wallpaper plugin for KDE Plasma")
    (description
     "This package provides a wallpaper plugin for KDE Plasma that blurs the
wallpaper when a window is active.")
    (license license:gpl2+)))

(define-public plasma-wallpaper-smart-video-wallpaper-reborn
  (package
    (name "plasma-wallpaper-smart-video-wallpaper-reborn")
    (version "2.10.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url (string-append "https://github.com/luisbocanegra/"
                              "plasma-smart-video-wallpaper-reborn"))
          (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1fscmvn3xg491fmm5iyy2q07lvwqggmh7wnn23h5v5dnnzhbm6h1"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #f ;no tests
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-paths
            (lambda* (#:key inputs #:allow-other-keys)
              (with-directory-excursion "package/contents/ui"
                (substitute* "tools/gdbus_get_signal.sh"
                  (("gdbus") (which "gdbus"))))))
          (add-after 'install 'make-tools-executable
            (lambda _
              (for-each (lambda (file)
                          (chmod file #o755))
                        (find-files (string-append #$output
                                                   "/share/plasma/plasmoids/"
                                                   "luisbocanegra.smart.video."
                                                   "wallpaper.reborn"
                                                   "/contents/ui/tools"))))))))
    (propagated-inputs
     (list kdeclarative
           ki18n
           kirigami
           libplasma
           plasma-workspace
           plasma5support
           qtbase
           qtdeclarative
           qtmultimedia))
    (native-inputs
     (list extra-cmake-modules))
    (inputs
     (list bash-minimal
           `(,glib "bin"))) ;for gdbus
    (home-page "https://store.kde.org/p/2139746")
    (synopsis "Video wallpaper plugin for KDE Plasma")
    (description
     "This package provides a wallpaper plugin for KDE Plasma to play videos on
your desktop or lock screen.")
    (license license:gpl2+)))

(define-public plasma-wallpaper-wallhaven-reborn
  (package
    (name "plasma-wallpaper-wallhaven-reborn")
    ;; No tags are available. This commit is taken from the master branch.
    (properties '((commit . "7f0220af0e6d4600be19e62bf5757b426787dfc8")
                  (revision . "0")))
    ;; Version is taken from file:///package/metadata.json.
    (version (git-version "1.1.1"
                          (assoc-ref properties 'revision)
                          (assoc-ref properties 'commit)))
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
          (url (string-append "https://github.com/Blacksuan19/"
                              "plasma-wallpaper-wallhaven-reborn"))
          (commit (assoc-ref properties 'commit))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0ccqps83x4k241z17zk6rhc034bh6dirqjcw219sq40gm35ix56s"))))
    (build-system copy-build-system)
    (arguments
     (list
      #:install-plan
      #~'(("package"
           "share/plasma/wallpapers/com.plasma.wallpaper.wallhaven"))))
    (propagated-inputs
     (list kdeclarative
           kirigami
           knotifications
           libplasma
           qtbase
           qtdeclarative))
    (home-page "https://store.kde.org/p/2193590")
    (synopsis "Wallhaven wallpaper plugin for KDE Plasma")
    (description
     "This package provides a wallpaper plugin for KDE Plasma that loads
images from @uref{https://wallhaven.cc/, Wallhaven}.")
    (license license:gpl2+)))