1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
3 ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
4 ;;; Copyright © 2017, 2018 Mark Meyer <mark@ofosos.org>
5 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
8 ;;; This file is part of GNU Guix.
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.
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.
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/>.
23 (define-module (gnu packages kde)
24 #:use-module (guix build-system cmake)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (gnu packages algebra)
31 #:use-module (gnu packages apr)
32 #:use-module (gnu packages boost)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages curl)
35 #:use-module (gnu packages documentation)
36 #:use-module (gnu packages gettext)
37 #:use-module (gnu packages ghostscript)
38 #:use-module (gnu packages gl)
39 #:use-module (gnu packages gnome)
40 #:use-module (gnu packages graphics)
41 #:use-module (gnu packages image)
42 #:use-module (gnu packages kde-frameworks)
43 #:use-module (gnu packages kde-plasma)
44 #:use-module (gnu packages llvm)
45 #:use-module (gnu packages maths)
46 #:use-module (gnu packages pdf)
47 #:use-module (gnu packages perl)
48 #:use-module (gnu packages photo)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages python)
51 #:use-module (gnu packages tls)
52 #:use-module (gnu packages qt)
53 #:use-module (gnu packages version-control)
54 #:use-module (gnu packages video)
55 #:use-module (gnu packages xdisorg)
56 #:use-module (gnu packages xorg))
58 (define-public kdenlive
59 (let ((version "18.08.1"))
67 (url "git://anongit.kde.org/kdenlive.git")
68 (commit (string-append "v" version))))
69 (file-name (string-append name "-" version "-checkout"))
72 "0ifnaclsz7w08mc485i3j1kkcpd1m8q5qamckrfwc375ac13xf4g"))))
73 (build-system cmake-build-system)
75 `(("extra-cmake-modules" ,extra-cmake-modules)
76 ("qttools" ,qttools)))
80 `(("shared-mime-info" ,shared-mime-info)
81 ("frei0r-plugins" ,frei0r-plugins)
83 ("qtscript" ,qtscript)
86 ("knotifications" ,knotifications)
87 ("karchive" ,karchive)
88 ("kdbusaddons" ,kdbusaddons)
90 ("kguiaddons" ,kguiaddons)
91 ("knewstuff" ,knewstuff)
92 ("knotifyconfig" ,knotifyconfig)
93 ("kfilemetadata" ,kfilemetadata)
94 ("kdoctools" ,kdoctools)
95 ("kdeclarative" ,kdeclarative)
96 ("qtdeclarative" ,qtdeclarative)
97 ("qtquickcontrols" ,qtquickcontrols)
98 ("kiconthemes" ,kiconthemes)
99 ("qtgraphicaleffects" ,qtgraphicaleffects)
100 ("kplotting" ,kplotting)))
103 (modify-phases %standard-phases
104 (add-after 'install 'wrap-executable
105 (lambda* (#:key inputs outputs #:allow-other-keys)
106 (let* ((out (assoc-ref outputs "out"))
107 (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
108 (qtbase (assoc-ref inputs "qtbase"))
109 (qtdeclarative (assoc-ref inputs "qtdeclarative"))
110 (frei0r (assoc-ref inputs "frei0r-plugins"))
111 (qml "/lib/qt5/qml"))
112 (wrap-program (string-append out "/bin/kdenlive")
113 `("QT_PLUGIN_PATH" ":" prefix
114 ,(map (lambda (label)
115 (string-append (assoc-ref inputs label)
116 "/lib/qt5/plugins/"))
117 '("qtbase" "qtsvg")))
118 `("FREI0R_PATH" ":" =
119 (,(string-append frei0r "/lib/frei0r-1/")))
120 `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
121 (,(string-append qtbase "/lib/qt5/plugins/platforms")))
122 `("QML2_IMPORT_PATH" ":" prefix
123 (,(string-append qtquickcontrols qml)
124 ,(string-append qtdeclarative qml)))))
126 (home-page "https://kdenlive.org")
127 (synopsis "Non-linear video editor")
128 (description "Kdenlive is an acronym for KDE Non-Linear Video Editor.
130 Non-linear video editing is much more powerful than beginner's (linear)
131 editors, hence it requires a bit more organization before starting. However,
132 it is not reserved to specialists and can be used for small personal
134 (license license:gpl2+))))
136 (define-public kdevelop
143 (uri (string-append "mirror://kde/stable/kdevelop"
144 "/" version "/src/kdevelop-"
148 "1iqaq0ilijjigqb34v5wq9in6bnjs0p9cmgbygjmy53xhh3yhm5g"))))
149 (build-system cmake-build-system)
151 `(("extra-cmake-modules" ,extra-cmake-modules)
152 ("pkg-config" ,pkg-config)
153 ("qttools" ,qttools)))
155 `(("kdevplatform" ,kdevplatform)
156 ("kdevelop-pg-qt" ,kdevelop-pg-qt)
158 ("qtdeclarative" ,qtdeclarative)
159 ("qtquickcontrols" ,qtquickcontrols)
160 ("qtwebkit" ,qtwebkit)
161 ("karchive" ,karchive)
162 ("kcmutils" ,kcmutils)
164 ("kdeclarative" ,kdeclarative)
165 ("kdoctools" ,kdoctools)
166 ("kguiaddons" ,kguiaddons)
169 ("kiconthemes" ,kiconthemes)
170 ("kitemmodels" ,kitemmodels)
171 ("kitemviews" ,kitemviews)
172 ("kjobwidgets" ,kjobwidgets)
173 ("knotifyconfig" ,knotifyconfig)
174 ("knotifications" ,knotifications)
177 ("knewstuff" ,knewstuff)
180 ("libksysguard" ,libksysguard)
181 ("threadweaver" ,threadweaver)
182 ("ktexteditor" ,ktexteditor)
183 ("kwindowsystem" ,kwindowsystem)
184 ("plasma" ,plasma-framework)
185 ("grantlee" ,grantlee)
186 ("libepoxy" ,libepoxy)
188 ("shared-mime-info" ,shared-mime-info)))
191 (modify-phases %standard-phases
192 (delete 'check) ;; there are some issues with the test suite
193 (add-after 'install 'wrap-executable
194 (lambda* (#:key inputs outputs #:allow-other-keys)
195 (let* ((out (assoc-ref outputs "out"))
196 (kdevplatform (assoc-ref inputs "kdevplatform"))
197 (kio (assoc-ref inputs "kio"))
198 (kcmutils (assoc-ref inputs "kcmutils"))
199 (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
200 (qtbase (assoc-ref inputs "qtbase"))
201 (qtdeclarative (assoc-ref inputs "qtdeclarative"))
203 (wrap-program (string-append out "/bin/kdevelop")
204 `("XDG_DATA_DIRS" ":" prefix
205 ,(map (lambda (s) (string-append s "/share"))
206 (list out kdevplatform kcmutils)))
207 `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
208 (,(string-append qtbase "/plugins/platforms")))
209 `("QT_PLUGIN_PATH" ":" prefix
210 ,(map (lambda (s) (string-append s "/lib/plugins"))
211 (list out kdevplatform kio)))
212 `("QML2_IMPORT_PATH" ":" prefix
213 (,(string-append qtquickcontrols qml)
214 ,(string-append qtdeclarative qml))))))))))
215 (home-page "https://kdevelop.org")
216 (synopsis "IDE for C, C++, Python, Javascript and PHP")
217 (description "The KDevelop IDE provides semantic syntax highlighting, as
218 well as code navigation and completion for C, C++ (using Clang/LLVM), QML,
219 JavaScript, Python and PHP. It also integrates with a debugger, different
220 build systems (CMake, QMake, custom Makefiles) and version control
221 software (Git, Subversion, Mercurial, CVS and Bazaar).")
222 (license license:lgpl2.1+)))
224 (define-public kdevelop-pg-qt
226 (name "kdevelop-pg-qt")
231 (uri (string-append "https://github.com/KDE/kdevelop-pg-qt/archive/v"
233 (file-name (string-append name "-" version ".tar.gz"))
235 (base32 "1av8plqz7hyhrd07avnmn6ryslqlarmxn0pw7swzvb6ddiqp59j4"))))
237 `(("extra-cmake-modules" ,extra-cmake-modules)))
239 `(("qtbase" ,qtbase)))
240 (build-system cmake-build-system)
241 (home-page "https://kde.org")
242 (synopsis "Parser generator library for KDevplatform")
243 (description "KDevelop-PG-Qt is the parser generator used in KDevplatform
244 for some KDevelop language plugins (Ruby, PHP, CSS...).")
245 (license license:lgpl2.0+)))
247 (define-public kdevplatform
249 (name "kdevplatform")
253 (uri (string-append "mirror://kde/stable/kdevelop"
254 "/" version "/src/kdevplatform-"
258 "0jk6g1kiqpyjy8pca0236b9944gxqnymqv8ny6m8nrraannxs8p6"))))
259 (build-system cmake-build-system)
261 `(("extra-cmake-modules" ,extra-cmake-modules)
262 ("pkg-config" ,pkg-config)))
265 ("apr-util" ,apr-util)
267 ("karchive" ,karchive)
268 ("kconfigwidgets" ,kconfigwidgets)
269 ("kcmutils" ,kcmutils)
270 ("kiconthemes" ,kiconthemes)
271 ("kdeclarative" ,kdeclarative)
272 ("kdoctools" ,kdoctools)
273 ("kguiaddons" ,kguiaddons)
275 ("kitemmodels" ,kitemmodels)
276 ("knewstuff" ,knewstuff)
277 ("knotifications" ,knotifications)
278 ("knotifyconfig" ,knotifyconfig)
279 ("kwindowsystem" ,kwindowsystem)
283 ("kservice" ,kservice)
284 ("grantlee" ,grantlee)
285 ("libkomparediff2" ,libkomparediff2)
287 ("threadweaver" ,threadweaver)
288 ("ktexteditor" ,ktexteditor)
290 ("qtdeclarative" ,qtdeclarative)
291 ("qtscript" ,qtscript)
292 ("qtwebkit" ,qtwebkit)
293 ("qtx11extras" ,qtx11extras)
294 ("plasma" ,plasma-framework)
295 ("subversion" ,subversion)
299 (modify-phases %standard-phases
301 (add-after 'install 'check
302 (lambda* (#:key outputs #:allow-other-keys)
303 (let ((out (assoc-ref outputs "out")))
304 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
305 (setenv "QT_PLUGIN_PATH"
306 (string-append out "/lib/plugins:"
307 (getenv "QT_PLUGIN_PATH")))
308 (setenv "XDG_DATA_DIRS"
309 (string-append out "/share:"
310 (getenv "XDG_DATA_DIRS")))
311 (invoke "ctest" "-R" ; almost all tests require a display
312 "filteringstrategy|kdevvarlengtharray|kdevhash")))))))
313 (home-page "https://github.com/KDE/kdevplatform")
314 (synopsis "Framework to build integrated development environments (IDEs)")
315 (description "KDevPlatform is the basis of KDevelop and contains some
316 plugins, as well as code to create plugins, or complete applications.")
317 (license license:gpl3+)))
322 (version "4.1.7.101")
326 "mirror://kde/stable/krita/"
327 (version-prefix version 3)
328 "/" name "-" version ".tar.gz"))
331 "0pvghb17vj3y19wa1n1zfg3yl5206ir3y45znrgdgdw076m5pjav"))))
332 (build-system cmake-build-system)
336 (list "-DBUILD_TESTING=OFF" "-DKDE4_BUILD_TESTS=OFF"
337 (string-append "-DWITH_FFTW3="
338 (assoc-ref %build-inputs "fftw"))
339 (string-append "-DWITH_GSL="
340 (assoc-ref %build-inputs "gsl"))
341 (string-append "-DWITH_LibRaw="
342 (assoc-ref %build-inputs "libraw"))
343 (string-append "-DWITH_TIFF="
344 (assoc-ref %build-inputs "libtiff"))
345 (string-append "-DCMAKE_CXX_FLAGS=-I"
346 (assoc-ref %build-inputs "ilmbase")
349 (modify-phases %standard-phases
350 ;; Ensure that icons are found at runtime.
351 ;; This works around <https://bugs.gnu.org/22138>.
352 (add-after 'install 'wrap-executable
353 (lambda* (#:key inputs outputs #:allow-other-keys)
354 (let ((out (assoc-ref outputs "out"))
355 (qt '("qtbase" "qtsvg")))
356 (wrap-program (string-append out "/bin/krita")
357 `("QT_PLUGIN_PATH" ":" prefix
358 ,(map (lambda (label)
359 (string-append (assoc-ref inputs label)
360 "/lib/qt5/plugins/"))
366 ("extra-cmake-modules" ,extra-cmake-modules)
367 ("gettext-minimal" ,gettext-minimal)
368 ("kitemmodels" ,kitemmodels)
373 ("qtdeclarative" ,qtdeclarative)
374 ("qtmultimedia" ,qtmultimedia)
375 ("qtx11extras" ,qtx11extras)
377 ("karchive" ,karchive)
378 ("kcompletion" ,kcompletion)
380 ("kcoreaddons" ,kcoreaddons)
382 ("kguiaddons" ,kguiaddons)
384 ("kiconthemes" ,kiconthemes)
386 ("kitemviews" ,kitemviews)
387 ("kwidgetsaddons" ,kwidgetsaddons)
388 ("kwindowsystem" ,kwindowsystem)
394 ("libjpeg-turbo" ,libjpeg-turbo)
401 ("poppler-qt5" ,poppler-qt5)
402 ("libraw" ,libraw-0.18)
406 ("openexr" ,openexr)))
407 (home-page "https://krita.org")
408 (synopsis "Digital painting application")
410 "Krita is a professional painting tool designed for concept artists,
411 illustrators, matte and texture artists, and the VFX industry. Notable
412 features include brush stabilizers, brush engines and wrap-around mode.")
413 (license license:gpl2+)))
415 (define-public kholidays
423 "mirror://kde/stable/applications/" version "/src/"
424 name "-" version ".tar.xz"))
426 (base32 "0595d7wbnz8kyq1bnivdrp20lwdp8ykvdll1fmb0fgm4q24z0cl8"))))
427 (build-system cmake-build-system)
430 (modify-phases %standard-phases
431 (add-before 'check 'check-setup
433 ;; blacklist a failing test function TODO: make it pass
434 (with-output-to-file "autotests/BLACKLIST"
436 (display "[testDefaultRegions]\n*\n")))
439 `(("extra-cmake-modules" ,extra-cmake-modules)
440 ("qttools" ,qttools)))
443 ("qtdeclarative" ,qtdeclarative)))
444 (home-page "https://cgit.kde.org/kholidays.git")
445 (synopsis "Library for regional holiday information")
446 (description "This library provides a C++ API that determines holiday and
447 other special events for a geographical region.")
448 (license license:lgpl2.0+)))
450 (define-public libkomparediff2
452 (name "libkomparediff2")
457 (uri (string-append "mirror://kde/stable/applications/" version
458 "/src/libkomparediff2-" version ".tar.xz"))
460 (base32 "1cyi7a5ss7jv87llk0k8c9g3h1qsp6j6nmdzh3xxcswr4p5skc9a"))))
462 `(("extra-cmake-modules" ,extra-cmake-modules)
463 ("pkg-config" ,pkg-config)))
465 `(("kcodecs" ,kcodecs)
467 ("kcoreaddons" ,kcoreaddons)
472 (build-system cmake-build-system)
473 (home-page "https://kde.org")
474 (synopsis "Library to compare files and strings, used in Kompare and KDevelop")
475 (description "Libkomparediff2 is a library to work with diffs and patches,
476 used in KDE development tools Kompare and KDevelop.")
478 ;; GPL, some files are also licensed under LGPL or BSD, see COPYING in the
480 (license (list license:gpl2+ license:lgpl2.0+ license:bsd-3))))
489 (uri (string-append "mirror://kde/stable/qca/" version
490 "/src/qca-" version ".tar.xz"))
493 "0lz3n652z208daxypdcxiybl0a9fnn6ida0q7fh5f42269mdhgq0"))))
494 (build-system cmake-build-system)
496 `(("pkg-config" ,pkg-config)))
498 `(("openssl" ,openssl)
500 (home-page "https://userbase.kde.org/QCA")
501 (synopsis "Libraries for the Qt Cryptographic Architecture")
502 (description "The Qt Cryptographic Architecture (QCA) provides a
503 straightforward and cross-platform API for a range of cryptographic features,
504 including SSL/TLS, X.509 certificates, SASL, OpenPGP, S/MIME CMS, and smart
506 (license license:lgpl2.1)))
508 (define-public snorenotify
515 (uri (string-append "mirror://kde/stable/snorenotify/"
516 version "/src/snorenotify-" version ".tar.xz"))
519 "0jz6ivk90h7iwgyxar7xzzj8yvzn6s1my6cqs9bdnwqswfk1nhbd"))))
520 (build-system cmake-build-system)
522 `(#:tests? #f)) ; both tests fail, require display
524 `(("extra-cmake-modules" ,extra-cmake-modules)
526 ("qttools" ,qttools)))
527 (home-page "https://techbase.kde.org/Projects/Snorenotify")
528 (synopsis "Qt notification framework")
529 (description "Snorenotify is a multi platform Qt notification framework.
530 Using a plugin system it is possible to create notifications with many
531 different notification systems.")
532 (license license:lgpl3)))
534 (define-public kdeconnect
541 (uri (string-append "mirror://kde/stable/kdeconnect/"
542 version "/src/kdeconnect-kde-"
546 "1vac0mw1myrswr61adv7lgif0c4wzw5wnsj0sqxj6msp4l4pfgsg"))))
547 (build-system cmake-build-system)
549 `(#:configure-flags '("-DBUILD_TESTING=ON")
550 #:tests? #f ; tests fail hard in our build environment
551 #:modules ((guix build cmake-build-system)
552 (guix build qt-utils)
554 #:imported-modules (,@%cmake-build-system-modules
555 (guix build qt-utils))
557 (modify-phases %standard-phases
558 (add-before 'check 'check-setup
560 (setenv "QT_QPA_PLATFORM" "offscreen")
562 (add-after 'install 'wrap-executable
563 (lambda* (#:key outputs #:allow-other-keys)
564 (let ((out (assoc-ref outputs "out")))
565 (setenv "QT_PLUGIN_PATH"
566 (string-append out "/lib/qt5/plugins"
567 ":" (getenv "QT_PLUGIN_PATH")))
568 (wrap-qt-program out "../lib/libexec/kdeconnectd")
569 (wrap-qt-program out "kdeconnect-cli")
570 (wrap-qt-program out "kdeconnect-handler")
571 (wrap-qt-program out "kdeconnect-indicator"))
574 `(("extra-cmake-modules" ,extra-cmake-modules)
575 ("kdoctools" ,kdoctools)
577 ("pkg-config" ,pkg-config)
578 ("python" ,python-wrapper)))
580 `(("kcmutils" ,kcmutils)
581 ("kconfigwidgets" ,kconfigwidgets)
582 ("kdbusaddons" ,kdbusaddons)
584 ("kiconthemes" ,kiconthemes)
586 ("knotifications" ,knotifications)
587 ("kwayland" ,kwayland)
588 ("libfakekey" ,libfakekey)
591 ("qtdeclarative" ,qtdeclarative)
592 ("qtx11extras" ,qtx11extras)))
593 (home-page "https://community.kde.org/KDEConnect")
594 (synopsis "Enable your devices to communicate with each other")
595 (description "KDE Connect is a project that enables all your devices to
596 communicate with each other. Here's a few things KDE Connect can do:
598 @item Receive your phone notifications on your desktop computer and reply to messages
599 @item Control music playing on your desktop from your phone
600 @item Use your phone as a remote control for your desktop
601 @item Run predefined commands on your PC from connected devices
602 @item Check your phones battery level from the desktop
603 @item Ring your phone to help finding it
604 @item Share files and links between devices
605 @item Browse your phone from the desktop
606 @item Control the desktop's volume from the phone
608 (license (list license:gpl2 license:gpl3)))) ; dual licensed