gnu: i3-wm: Update to 4.18.3.
[jackhill/guix/guix.git] / gnu / packages / kde-plasma.scm
CommitLineData
bec2a2e1
MB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
cdf7fea1 3;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
6a97dfff
HG
4;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
5;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
c31f2d01 6;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
bec2a2e1
MB
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages kde-plasma)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix build-system cmake)
cd165d10 28 #:use-module (guix build-system qt)
bec2a2e1 29 #:use-module (gnu packages compression)
fd56c4be 30 #:use-module (gnu packages freedesktop)
bec2a2e1
MB
31 #:use-module (gnu packages glib)
32 #:use-module (gnu packages kde-frameworks)
fd56c4be 33 #:use-module (gnu packages linux)
bec2a2e1
MB
34 #:use-module (gnu packages pkg-config)
35 #:use-module (gnu packages qt)
36 #:use-module (gnu packages xorg))
37
6a97dfff
HG
38(define-public kdecoration
39 (package
40 (name "kdecoration")
fc6bced6 41 (version "5.19.5")
6a97dfff
HG
42 (source (origin
43 (method url-fetch)
44 (uri (string-append "mirror://kde/stable/plasma/" version
45 "/kdecoration-" version ".tar.xz"))
46 (sha256
47 (base32
fc6bced6 48 "0pn8n7zyb0adzjnn92vmbcf7pmpss60k9k1rk5llamj016xzfgnf"))))
cd165d10 49 (build-system qt-build-system)
6a97dfff
HG
50 (native-inputs
51 `(("extra-cmake-modules" ,extra-cmake-modules)))
52 (inputs
53 `(("ki18n" ,ki18n)
54 ("qtbase" ,qtbase)))
6a97dfff
HG
55 (home-page "https://cgit.kde.org/kdecoration.git")
56 (synopsis "Plugin based library to create window decorations")
57 (description "KDecoration is a library to create window decorations.
58These window decorations can be used by for example an X11 based window
59manager which re-parents a Client window to a window decoration frame.")
60 (license license:lgpl3+)))
61
fd56c4be
HG
62(define-public kscreenlocker
63 (package
64 (name "kscreenlocker")
fc6bced6 65 (version "5.19.5")
fd56c4be
HG
66 (source (origin
67 (method url-fetch)
68 (uri (string-append "mirror://kde/stable/plasma/" version
69 "/kscreenlocker-" version ".tar.xz"))
70 (sha256
71 (base32
fc6bced6 72 "1fd5sqaqx9kj3kr0bgxpllhcm5arf8bc9pkpd9yk9c8xjy0j0fxi"))))
0f4c320c 73 (build-system qt-build-system)
fd56c4be 74 (arguments
0f4c320c
HG
75 `(#:tests? #f ;; TODO: make tests pass
76 #:phases
fd56c4be
HG
77 (modify-phases %standard-phases
78 (add-before 'check 'check-setup
79 (lambda* (#:key inputs outputs #:allow-other-keys)
80 (system (string-append (assoc-ref inputs "xorg-server")
81 "/bin/Xvfb :1 -screen 0 640x480x24 &"))
82 (setenv "DISPLAY" ":1")
83 #t))
84 (delete 'check)
85 ;; Tests use the installed library and require a DBus session.
86 (add-after 'install 'check
0f4c320c
HG
87 (lambda* (#:key tests? #:allow-other-keys)
88 (if tests?
89 (begin
90 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
91 (invoke "dbus-launch" "ctest" ".")))
92 #t)))))
fd56c4be
HG
93 (native-inputs
94 `(("extra-cmake-modules" ,extra-cmake-modules)
95 ("pkg-config" ,pkg-config)
fd56c4be
HG
96 ;; For tests.
97 ("dbus" ,dbus)
ff337525 98 ("xorg-server" ,xorg-server-for-tests)))
fd56c4be
HG
99 (inputs
100 `(("kcmutils" ,kcmutils)
101 ("kcrash" ,kcrash)
102 ("kdeclarative" ,kdeclarative)
103 ("kglobalaccel" ,kglobalaccel)
104 ("ki18n" ,ki18n)
105 ("kidletime" ,kidletime)
106 ("knotifications" ,knotifications)
107 ("ktextwidgets" ,ktextwidgets)
108 ("kwayland" ,kwayland)
109 ("kwindowsystem" ,kwindowsystem)
110 ("kxmlgui" ,kxmlgui)
111 ("libseccomp" ,libseccomp) ;for sandboxing the look'n'feel package
112 ("libxcursor" ,libxcursor) ;missing in CMakeList.txt
113 ("libxi" ,libxi) ;XInput, required for grabbing XInput2 devices
114 ("linux-pam" ,linux-pam)
115 ("logind" ,elogind) ;optional loginctl support
116 ("qtbase" ,qtbase)
117 ("qtdeclarative" ,qtdeclarative)
118 ("qtx11extras" ,qtx11extras)
119 ("solid" ,solid)
120 ("wayland" ,wayland)
121 ("xcb-util-keysyms" ,xcb-util-keysyms)))
122 (home-page "https://cgit.kde.org/kscreenlocker.git")
123 (synopsis "Screen locking library")
124 (description
125 "@code{kscreenlocker} is a library for creating secure lock screens.")
126 (license license:gpl2+)))
127
bec2a2e1
MB
128(define-public libkscreen
129 (package
130 (name "libkscreen")
fc6bced6 131 (version "5.19.5")
bec2a2e1
MB
132 (source
133 (origin
134 (method url-fetch)
135 (uri (string-append "mirror://kde/stable/plasma/" version "/"
136 name "-" version ".tar.xz"))
137 (sha256
fc6bced6 138 (base32 "0rf1pm0yyc069f4n5s9ipdx4glzfr9zvv5cbrmn4q9i4v6z1qd8i"))))
cd165d10 139 (build-system qt-build-system)
bec2a2e1
MB
140 (native-inputs
141 `(("extra-cmake-modules" ,extra-cmake-modules)
142 ;; For testing.
143 ("dbus" ,dbus)))
144 (inputs
145 `(("kwayland" ,kwayland)
146 ("libxrandr" ,libxrandr)
147 ("qtbase" ,qtbase)
148 ("qtx11extras" ,qtx11extras)))
149 (arguments
cd165d10 150 '(#:tests? #f)) ; FIXME: 55% tests passed, 5 tests failed out of 11
bec2a2e1
MB
151 (home-page "https://community.kde.org/Solid/Projects/ScreenManagement")
152 (synopsis "KDE's screen management software")
153 (description "KScreen is the new screen management software for KDE Plasma
154Workspaces which tries to be as magic and automatic as possible for users with
155basic needs and easy to configure for those who want special setups.")
156 (license license:gpl2+)))
157
158(define-public libksysguard
159 (package
160 (name "libksysguard")
fc6bced6 161 (version "5.19.5")
bec2a2e1
MB
162 (source
163 (origin
164 (method url-fetch)
165 (uri (string-append "mirror://kde//stable/plasma/" version
166 "/libksysguard-" version ".tar.xz"))
167 (sha256
fc6bced6 168 (base32 "1kd0h3p8bf9k5pqp0frhr81pa0yyrpkckg9zznirk9p1v88v7bfq"))))
bec2a2e1
MB
169 (native-inputs
170 `(("extra-cmake-modules" ,extra-cmake-modules)
171 ("pkg-config" ,pkg-config)))
172 (inputs
173 `(("kconfigwidgets" ,kconfigwidgets)
174 ("kiconthemes" ,kiconthemes)
175 ("kwindowsystem" ,kwindowsystem)
176 ("ki18n" ,ki18n)
177 ("kauth" ,kauth)
178 ("kcompletion" ,kcompletion)
179 ("kconfig" ,kconfig)
180 ("kcoreaddons" ,kcoreaddons)
fc6bced6 181 ("kdeclarative" ,kdeclarative)
856e3f9c
MB
182 ("kglobalaccel" ,kglobalaccel)
183 ("kio" ,kio)
fc6bced6 184 ("knewstuff" ,knewstuff)
bec2a2e1
MB
185 ("kwidgetsaddons" ,kwidgetsaddons)
186 ("kservice" ,kservice)
187 ("qtbase" ,qtbase)
fc6bced6 188 ("qtdeclarative" ,qtdeclarative)
bec2a2e1
MB
189 ("qtscript" ,qtscript)
190 ("qtwebkit" ,qtwebkit)
191 ("qtx11extras" ,qtx11extras)
192 ("plasma" ,plasma-framework)
193 ("zlib" ,zlib)))
cd165d10 194 (build-system qt-build-system)
bec2a2e1
MB
195 (arguments
196 `(#:configure-flags
197 `(,(string-append "-DKDE_INSTALL_DATADIR="
198 (assoc-ref %outputs "out") "/share"))
199 #:phases
200 (modify-phases %standard-phases
201 (add-before 'configure 'patch-cmakelists
202 (lambda _
203 ;; TODO: Verify: This should no longer be necessary, since
204 ;; KF5AuthConfig.cmake.in contains this already.
205 (substitute* "processcore/CMakeLists.txt"
206 (("KAUTH_HELPER_INSTALL_DIR") "KDE_INSTALL_LIBEXECDIR"))))
bec2a2e1
MB
207 (replace 'check
208 (lambda _
209 ;; TODO: Fix this failing test-case
210 (invoke "ctest" "-E" "processtest"))))))
284fb66a 211 (home-page "https://userbase.kde.org/KSysGuard")
bec2a2e1
MB
212 (synopsis "Network enabled task and system monitoring")
213 (description "KSysGuard can obtain information on system load and
214manage running processes. It obtains this information by interacting
215with a ksysguardd daemon, which may also run on a remote system.")
216 (license license:gpl3+)))
217