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>
7 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
8 ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages kde)
26 #:use-module (guix build-system cmake)
27 #:use-module (guix download)
28 #:use-module (guix git-download)
29 #:use-module ((guix licenses) #:prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix utils)
32 #:use-module (gnu packages algebra)
33 #:use-module (gnu packages apr)
34 #:use-module (gnu packages boost)
35 #:use-module (gnu packages compression)
36 #:use-module (gnu packages curl)
37 #:use-module (gnu packages documentation)
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages ghostscript)
40 #:use-module (gnu packages gl)
41 #:use-module (gnu packages gnome)
42 #:use-module (gnu packages graphics)
43 #:use-module (gnu packages image)
44 #:use-module (gnu packages kde-frameworks)
45 #:use-module (gnu packages kde-plasma)
46 #:use-module (gnu packages llvm)
47 #:use-module (gnu packages maths)
48 #:use-module (gnu packages pdf)
49 #:use-module (gnu packages perl)
50 #:use-module (gnu packages photo)
51 #:use-module (gnu packages pkg-config)
52 #:use-module (gnu packages python)
53 #:use-module (gnu packages tls)
54 #:use-module (gnu packages qt)
55 #:use-module (gnu packages version-control)
56 #:use-module (gnu packages video)
57 #:use-module (gnu packages xdisorg)
58 #:use-module (gnu packages xorg))
60 (define-public kdenlive
61 (let ((version "18.08.1"))
69 (url "git://anongit.kde.org/kdenlive.git")
70 (commit (string-append "v" version))))
71 (file-name (string-append name "-" version "-checkout"))
74 "0ifnaclsz7w08mc485i3j1kkcpd1m8q5qamckrfwc375ac13xf4g"))))
75 (build-system cmake-build-system)
77 `(("extra-cmake-modules" ,extra-cmake-modules)
78 ("qttools" ,qttools)))
82 `(("shared-mime-info" ,shared-mime-info)
83 ("frei0r-plugins" ,frei0r-plugins)
85 ("qtscript" ,qtscript)
88 ("knotifications" ,knotifications)
89 ("karchive" ,karchive)
90 ("kdbusaddons" ,kdbusaddons)
92 ("kguiaddons" ,kguiaddons)
93 ("knewstuff" ,knewstuff)
94 ("knotifyconfig" ,knotifyconfig)
95 ("kfilemetadata" ,kfilemetadata)
96 ("kdoctools" ,kdoctools)
97 ("kdeclarative" ,kdeclarative)
98 ("qtdeclarative" ,qtdeclarative)
99 ("qtquickcontrols" ,qtquickcontrols)
100 ("kiconthemes" ,kiconthemes)
101 ("qtgraphicaleffects" ,qtgraphicaleffects)
102 ("kplotting" ,kplotting)))
105 (modify-phases %standard-phases
106 (add-after 'install 'wrap-executable
107 (lambda* (#:key inputs outputs #:allow-other-keys)
108 (let* ((out (assoc-ref outputs "out"))
109 (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
110 (qtbase (assoc-ref inputs "qtbase"))
111 (qtdeclarative (assoc-ref inputs "qtdeclarative"))
112 (frei0r (assoc-ref inputs "frei0r-plugins"))
113 (qml "/lib/qt5/qml"))
114 (wrap-program (string-append out "/bin/kdenlive")
115 `("QT_PLUGIN_PATH" ":" prefix
116 ,(map (lambda (label)
117 (string-append (assoc-ref inputs label)
118 "/lib/qt5/plugins/"))
119 '("qtbase" "qtsvg")))
120 `("FREI0R_PATH" ":" =
121 (,(string-append frei0r "/lib/frei0r-1/")))
122 `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
123 (,(string-append qtbase "/lib/qt5/plugins/platforms")))
124 `("QML2_IMPORT_PATH" ":" prefix
125 (,(string-append qtquickcontrols qml)
126 ,(string-append qtdeclarative qml)))))
128 (home-page "https://kdenlive.org")
129 (synopsis "Non-linear video editor")
130 (description "Kdenlive is an acronym for KDE Non-Linear Video Editor.
132 Non-linear video editing is much more powerful than beginner's (linear)
133 editors, hence it requires a bit more organization before starting. However,
134 it is not reserved to specialists and can be used for small personal
136 (license license:gpl2+))))
138 (define-public kdevelop
145 (uri (string-append "mirror://kde/stable/kdevelop"
146 "/" version "/src/kdevelop-"
150 "1iqaq0ilijjigqb34v5wq9in6bnjs0p9cmgbygjmy53xhh3yhm5g"))))
151 (build-system cmake-build-system)
153 `(("extra-cmake-modules" ,extra-cmake-modules)
154 ("pkg-config" ,pkg-config)
155 ("qttools" ,qttools)))
157 `(("kdevplatform" ,kdevplatform)
158 ("kdevelop-pg-qt" ,kdevelop-pg-qt)
160 ("qtdeclarative" ,qtdeclarative)
161 ("qtquickcontrols" ,qtquickcontrols)
162 ("qtwebkit" ,qtwebkit)
163 ("karchive" ,karchive)
164 ("kcmutils" ,kcmutils)
166 ("kdeclarative" ,kdeclarative)
167 ("kdoctools" ,kdoctools)
168 ("kguiaddons" ,kguiaddons)
171 ("kiconthemes" ,kiconthemes)
172 ("kitemmodels" ,kitemmodels)
173 ("kitemviews" ,kitemviews)
174 ("kjobwidgets" ,kjobwidgets)
175 ("knotifyconfig" ,knotifyconfig)
176 ("knotifications" ,knotifications)
179 ("knewstuff" ,knewstuff)
182 ("libksysguard" ,libksysguard)
183 ("threadweaver" ,threadweaver)
184 ("ktexteditor" ,ktexteditor)
185 ("kwindowsystem" ,kwindowsystem)
186 ("plasma" ,plasma-framework)
187 ("grantlee" ,grantlee)
188 ("libepoxy" ,libepoxy)
190 ("shared-mime-info" ,shared-mime-info)))
193 (modify-phases %standard-phases
194 (delete 'check) ;; there are some issues with the test suite
195 (add-after 'install 'wrap-executable
196 (lambda* (#:key inputs outputs #:allow-other-keys)
197 (let* ((out (assoc-ref outputs "out"))
198 (kdevplatform (assoc-ref inputs "kdevplatform"))
199 (kio (assoc-ref inputs "kio"))
200 (kcmutils (assoc-ref inputs "kcmutils"))
201 (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
202 (qtbase (assoc-ref inputs "qtbase"))
203 (qtdeclarative (assoc-ref inputs "qtdeclarative"))
205 (wrap-program (string-append out "/bin/kdevelop")
206 `("XDG_DATA_DIRS" ":" prefix
207 ,(map (lambda (s) (string-append s "/share"))
208 (list out kdevplatform kcmutils)))
209 `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
210 (,(string-append qtbase "/plugins/platforms")))
211 `("QT_PLUGIN_PATH" ":" prefix
212 ,(map (lambda (s) (string-append s "/lib/plugins"))
213 (list out kdevplatform kio)))
214 `("QML2_IMPORT_PATH" ":" prefix
215 (,(string-append qtquickcontrols qml)
216 ,(string-append qtdeclarative qml))))))))))
217 (home-page "https://kdevelop.org")
218 (synopsis "IDE for C, C++, Python, Javascript and PHP")
219 (description "The KDevelop IDE provides semantic syntax highlighting, as
220 well as code navigation and completion for C, C++ (using Clang/LLVM), QML,
221 JavaScript, Python and PHP. It also integrates with a debugger, different
222 build systems (CMake, QMake, custom Makefiles) and version control
223 software (Git, Subversion, Mercurial, CVS and Bazaar).")
224 (license license:lgpl2.1+)))
226 (define-public kdevelop-pg-qt
228 (name "kdevelop-pg-qt")
233 (uri (string-append "https://github.com/KDE/kdevelop-pg-qt/archive/v"
235 (file-name (string-append name "-" version ".tar.gz"))
237 (base32 "1av8plqz7hyhrd07avnmn6ryslqlarmxn0pw7swzvb6ddiqp59j4"))))
239 `(("extra-cmake-modules" ,extra-cmake-modules)))
241 `(("qtbase" ,qtbase)))
242 (build-system cmake-build-system)
243 (home-page "https://kde.org")
244 (synopsis "Parser generator library for KDevplatform")
245 (description "KDevelop-PG-Qt is the parser generator used in KDevplatform
246 for some KDevelop language plugins (Ruby, PHP, CSS...).")
247 (license license:lgpl2.0+)))
249 (define-public kdevplatform
251 (name "kdevplatform")
255 (uri (string-append "mirror://kde/stable/kdevelop"
256 "/" version "/src/kdevplatform-"
260 "0jk6g1kiqpyjy8pca0236b9944gxqnymqv8ny6m8nrraannxs8p6"))))
261 (build-system cmake-build-system)
263 `(("extra-cmake-modules" ,extra-cmake-modules)
264 ("pkg-config" ,pkg-config)))
267 ("apr-util" ,apr-util)
269 ("karchive" ,karchive)
270 ("kconfigwidgets" ,kconfigwidgets)
271 ("kcmutils" ,kcmutils)
272 ("kiconthemes" ,kiconthemes)
273 ("kdeclarative" ,kdeclarative)
274 ("kdoctools" ,kdoctools)
275 ("kguiaddons" ,kguiaddons)
277 ("kitemmodels" ,kitemmodels)
278 ("knewstuff" ,knewstuff)
279 ("knotifications" ,knotifications)
280 ("knotifyconfig" ,knotifyconfig)
281 ("kwindowsystem" ,kwindowsystem)
285 ("kservice" ,kservice)
286 ("grantlee" ,grantlee)
287 ("libkomparediff2" ,libkomparediff2)
289 ("threadweaver" ,threadweaver)
290 ("ktexteditor" ,ktexteditor)
292 ("qtdeclarative" ,qtdeclarative)
293 ("qtscript" ,qtscript)
294 ("qtwebkit" ,qtwebkit)
295 ("qtx11extras" ,qtx11extras)
296 ("plasma" ,plasma-framework)
297 ("subversion" ,subversion)
301 (modify-phases %standard-phases
303 (add-after 'install 'check
304 (lambda* (#:key outputs #:allow-other-keys)
305 (let ((out (assoc-ref outputs "out")))
306 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
307 (setenv "QT_PLUGIN_PATH"
308 (string-append out "/lib/plugins:"
309 (getenv "QT_PLUGIN_PATH")))
310 (setenv "XDG_DATA_DIRS"
311 (string-append out "/share:"
312 (getenv "XDG_DATA_DIRS")))
313 (invoke "ctest" "-R" ; almost all tests require a display
314 "filteringstrategy|kdevvarlengtharray|kdevhash")))))))
315 (home-page "https://github.com/KDE/kdevplatform")
316 (synopsis "Framework to build integrated development environments (IDEs)")
317 (description "KDevPlatform is the basis of KDevelop and contains some
318 plugins, as well as code to create plugins, or complete applications.")
319 (license license:gpl3+)))
328 "mirror://kde/stable/krita/"
329 (version-prefix version 3)
330 "/krita-" version ".tar.gz"))
333 "1f14r2mrqasl6nr3sss0xy2h8xlxd5wdcjcd64m9nz2gwlm39r7w"))))
334 (build-system cmake-build-system)
338 (list "-DBUILD_TESTING=OFF"
339 (string-append "-DCMAKE_CXX_FLAGS=-I"
340 (assoc-ref %build-inputs "ilmbase")
343 (modify-phases %standard-phases
344 ;; Ensure that icons are found at runtime.
345 ;; This works around <https://bugs.gnu.org/22138>.
346 (add-after 'install 'wrap-executable
347 (lambda* (#:key inputs outputs #:allow-other-keys)
348 (let ((out (assoc-ref outputs "out"))
349 (qt '("qtbase" "qtsvg")))
350 (wrap-program (string-append out "/bin/krita")
351 `("QT_PLUGIN_PATH" ":" prefix
352 ,(map (lambda (label)
353 (string-append (assoc-ref inputs label)
354 "/lib/qt5/plugins/"))
360 ("extra-cmake-modules" ,extra-cmake-modules)
361 ("gettext-minimal" ,gettext-minimal)
362 ("kitemmodels" ,kitemmodels)
363 ("pkg-config" ,pkg-config)
372 ("karchive" ,karchive)
373 ("kcompletion" ,kcompletion)
375 ("kcoreaddons" ,kcoreaddons)
377 ("kguiaddons" ,kguiaddons)
379 ("kiconthemes" ,kiconthemes)
381 ("kitemviews" ,kitemviews)
382 ("kwidgetsaddons" ,kwidgetsaddons)
383 ("kwindowsystem" ,kwindowsystem)
386 ("libjpeg-turbo" ,libjpeg-turbo)
388 ("libraw" ,libraw-0.18)
395 ("poppler-qt5" ,poppler-qt5)
397 ("qtdeclarative" ,qtdeclarative)
398 ("qtmultimedia" ,qtmultimedia)
400 ("qtx11extras" ,qtx11extras)
403 (home-page "https://krita.org")
404 (synopsis "Digital painting application")
406 "Krita is a professional painting tool designed for concept artists,
407 illustrators, matte and texture artists, and the VFX industry. Notable
408 features include brush stabilizers, brush engines and wrap-around mode.")
409 (license license:gpl2+)))
411 (define-public kholidays
419 "mirror://kde/stable/applications/" version "/src/"
420 name "-" version ".tar.xz"))
422 (base32 "0595d7wbnz8kyq1bnivdrp20lwdp8ykvdll1fmb0fgm4q24z0cl8"))))
423 (build-system cmake-build-system)
426 (modify-phases %standard-phases
427 (add-before 'check 'check-setup
429 ;; blacklist a failing test function TODO: make it pass
430 (with-output-to-file "autotests/BLACKLIST"
432 (display "[testDefaultRegions]\n*\n")))
435 `(("extra-cmake-modules" ,extra-cmake-modules)
436 ("qttools" ,qttools)))
439 ("qtdeclarative" ,qtdeclarative)))
440 (home-page "https://cgit.kde.org/kholidays.git")
441 (synopsis "Library for regional holiday information")
442 (description "This library provides a C++ API that determines holiday and
443 other special events for a geographical region.")
444 (license license:lgpl2.0+)))
446 (define-public libkomparediff2
448 (name "libkomparediff2")
453 (uri (string-append "mirror://kde/stable/applications/" version
454 "/src/libkomparediff2-" version ".tar.xz"))
456 (base32 "1cyi7a5ss7jv87llk0k8c9g3h1qsp6j6nmdzh3xxcswr4p5skc9a"))))
458 `(("extra-cmake-modules" ,extra-cmake-modules)
459 ("pkg-config" ,pkg-config)))
461 `(("kcodecs" ,kcodecs)
463 ("kcoreaddons" ,kcoreaddons)
468 (build-system cmake-build-system)
469 (home-page "https://kde.org")
470 (synopsis "Library to compare files and strings, used in Kompare and KDevelop")
471 (description "Libkomparediff2 is a library to work with diffs and patches,
472 used in KDE development tools Kompare and KDevelop.")
474 ;; GPL, some files are also licensed under LGPL or BSD, see COPYING in the
476 (license (list license:gpl2+ license:lgpl2.0+ license:bsd-3))))
485 (uri (string-append "mirror://kde/stable/qca/" version
486 "/qca-" version ".tar.xz"))
489 "00kv1vsrc8fp556hm8s6yw3240vx3l4067q6vfxrb3gdwgcd45np"))))
490 (build-system cmake-build-system)
492 `(("pkg-config" ,pkg-config)))
494 `(("openssl" ,openssl)
496 (home-page "https://userbase.kde.org/QCA")
497 (synopsis "Libraries for the Qt Cryptographic Architecture")
498 (description "The Qt Cryptographic Architecture (QCA) provides a
499 straightforward and cross-platform API for a range of cryptographic features,
500 including SSL/TLS, X.509 certificates, SASL, OpenPGP, S/MIME CMS, and smart
502 (license license:lgpl2.1)))
504 (define-public snorenotify
511 (uri (string-append "mirror://kde/stable/snorenotify/"
512 version "/src/snorenotify-" version ".tar.xz"))
515 "0jz6ivk90h7iwgyxar7xzzj8yvzn6s1my6cqs9bdnwqswfk1nhbd"))))
516 (build-system cmake-build-system)
518 `(#:tests? #f)) ; both tests fail, require display
520 `(("qtbase" ,qtbase)))
522 `(("extra-cmake-modules" ,extra-cmake-modules)
523 ("qttools" ,qttools)))
524 (home-page "https://techbase.kde.org/Projects/Snorenotify")
525 (synopsis "Qt notification framework")
526 (description "Snorenotify is a multi platform Qt notification framework.
527 Using a plugin system it is possible to create notifications with many
528 different notification systems.")
529 (license license:lgpl3)))
531 (define-public kdeconnect
538 (uri (string-append "mirror://kde/stable/kdeconnect/"
539 version "/kdeconnect-kde-"
543 "02lr3xx5s2mgddac4n3lkgr7ppf1z5m6ajs90rjix0vs8a271kp5"))))
544 (build-system cmake-build-system)
546 `(#:configure-flags '("-DBUILD_TESTING=ON")
547 #:tests? #f ; tests fail hard in our build environment
548 #:modules ((guix build cmake-build-system)
549 (guix build qt-utils)
551 #:imported-modules (,@%cmake-build-system-modules
552 (guix build qt-utils))
554 (modify-phases %standard-phases
555 (add-before 'check 'check-setup
557 (setenv "QT_QPA_PLATFORM" "offscreen")
559 (add-after 'install 'wrap-executable
560 (lambda* (#:key outputs #:allow-other-keys)
561 (let ((out (assoc-ref outputs "out")))
562 (wrap-qt-program out "../lib/libexec/kdeconnectd")
563 (wrap-qt-program out "kdeconnect-cli")
564 (wrap-qt-program out "kdeconnect-handler")
565 (wrap-qt-program out "kdeconnect-indicator"))
568 `(("extra-cmake-modules" ,extra-cmake-modules)
569 ("kdoctools" ,kdoctools)
571 ("pkg-config" ,pkg-config)
572 ("python" ,python-wrapper)))
574 `(("kcmutils" ,kcmutils)
575 ("kconfigwidgets" ,kconfigwidgets)
576 ("kdbusaddons" ,kdbusaddons)
578 ("kiconthemes" ,kiconthemes)
580 ("knotifications" ,knotifications)
581 ("kwayland" ,kwayland)
582 ("libfakekey" ,libfakekey)
585 ("qtdeclarative" ,qtdeclarative)
586 ("qtx11extras" ,qtx11extras)))
587 (home-page "https://community.kde.org/KDEConnect")
588 (synopsis "Enable your devices to communicate with each other")
589 (description "KDE Connect is a project that enables all your devices to
590 communicate with each other. Here's a few things KDE Connect can do:
592 @item Receive your phone notifications on your desktop computer and reply to messages
593 @item Control music playing on your desktop from your phone
594 @item Use your phone as a remote control for your desktop
595 @item Run predefined commands on your PC from connected devices
596 @item Check your phones battery level from the desktop
597 @item Ring your phone to help finding it
598 @item Share files and links between devices
599 @item Browse your phone from the desktop
600 @item Control the desktop's volume from the phone
602 (properties `((upstream-name . "kdeconnect-kde")))
603 (license (list license:gpl2 license:gpl3)))) ; dual licensed
605 (define-public kqtquickcharts
607 (name "kqtquickcharts")
612 (uri (string-append "mirror://kde/stable/applications/"
613 version "/src/kqtquickcharts-" version ".tar.xz"))
616 "1j3rivvh4sa94lsd0hi4xfvcikl05zrqd7634wxyaxs718ais6dg"))))
617 (build-system cmake-build-system)
619 `(("extra-cmake-modules" ,extra-cmake-modules)))
622 ("qtdeclarative" ,qtdeclarative)))
623 (home-page "https://phabricator.kde.org/source/kqtquickcharts/")
624 (synopsis "Interactive charts for Qt Quick")
626 "Kqtquickcharts is a QtQuick plugin to render beautiful and interactive
628 (license license:lgpl2.1+)))
630 (define-public kcachegrind
636 (uri (string-append "mirror://kde/stable/applications/" version
637 "/src/kcachegrind-" version ".tar.xz"))
640 "1hhsk64yp6q2xh8j269j4wp9y24ggmii861r6gf02mj1mbn2p1jb"))))
641 (build-system cmake-build-system)
643 `(("extra-cmake-modules" ,extra-cmake-modules)
647 ("kdoctools" ,kdoctools)))
650 ("karchive" ,karchive)
653 ("kdbusaddons" ,kdbusaddons)))
654 ;; Note: The 'hotshot2calltree' and 'pprof2calltree' scripts depend on
655 ;; Python and PHP, respectively. These are optional and we ignore them
657 (home-page "https://kcachegrind.github.io/html/Home.html")
658 (synopsis "Visualize profiles produces by Valgrind's Cachegrind tool")
660 "The data files generated by the Callgrind of Valgrind, an application
661 profiler, can be loaded into KCachegrind for browsing the performance results.
662 There is also a command-line tool to get ASCII reports from data files without
663 the need to use KCachegrind.
665 The format of Callgrind output is documented. With conversion scripts,
666 KCachegrind is able to visualize output of other profilers like OProfile, a
667 system-wide profiler for Linux using statistical sampling with hardware
668 performance counters. There also exist converters for profiling output of
669 Python, PHP, and Perl.")
670 (license license:gpl2)))