1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2015, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
6 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
7 ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
8 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Quiliro <quiliro@fsfla.org>
10 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
12 ;;; Copyright © 2018 Hartmut Goebel <h.goebel@crazy-compilers.com>
13 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
14 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
15 ;;; Copyright © 2018 John Soo <jsoo1@asu.edu>
16 ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
17 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
18 ;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net>
19 ;;; Copyright © 2020 TomZ <tomz@freedommail.ch>
20 ;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
21 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
22 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages qt)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix packages)
42 #:use-module (guix download)
43 #:use-module (guix git-download)
44 #:use-module (guix build-system cmake)
45 #:use-module (guix build-system gnu)
46 #:use-module (guix build-system trivial)
47 #:use-module (guix build-system python)
48 #:use-module (guix packages)
49 #:use-module (guix deprecation)
50 #:use-module (guix utils)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages bison)
54 #:use-module (gnu packages cmake)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages cups)
57 #:use-module (gnu packages curl)
58 #:use-module (gnu packages databases)
59 #:use-module (gnu packages documentation)
60 #:use-module (gnu packages enchant)
61 #:use-module (gnu packages fontutils)
62 #:use-module (gnu packages flex)
63 #:use-module (gnu packages freedesktop)
64 #:use-module (gnu packages gcc)
65 #:use-module (gnu packages ghostscript)
66 #:use-module (gnu packages gl)
67 #:use-module (gnu packages glib)
68 #:use-module (gnu packages gnupg)
69 #:use-module (gnu packages gperf)
70 #:use-module (gnu packages gstreamer)
71 #:use-module (gnu packages gtk)
72 #:use-module (gnu packages icu4c)
73 #:use-module (gnu packages image)
74 #:use-module (gnu packages libevent)
75 #:use-module (gnu packages linux)
76 #:use-module (gnu packages llvm)
77 #:use-module (gnu packages maths)
78 #:use-module (gnu packages networking)
79 #:use-module (gnu packages ninja)
80 #:use-module (gnu packages nss)
81 #:use-module (gnu packages pciutils)
82 #:use-module (gnu packages pcre)
83 #:use-module (gnu packages perl)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages pulseaudio)
86 #:use-module (gnu packages protobuf)
87 #:use-module (gnu packages python)
88 #:use-module (gnu packages python-xyz)
89 #:use-module (gnu packages regex)
90 #:use-module (gnu packages ruby)
91 #:use-module (gnu packages sdl)
92 #:use-module (gnu packages serialization)
93 #:use-module (gnu packages sqlite)
94 #:use-module (gnu packages telephony)
95 #:use-module (gnu packages tls)
96 #:use-module (gnu packages valgrind)
97 #:use-module (gnu packages video)
98 #:use-module (gnu packages vulkan)
99 #:use-module (gnu packages xdisorg)
100 #:use-module (gnu packages xiph)
101 #:use-module (gnu packages xorg)
102 #:use-module (gnu packages xml)
103 #:use-module (srfi srfi-1))
105 (define-public grantlee
113 (url "https://github.com/steveire/grantlee")
114 (commit (string-append "v" version))))
115 (file-name (git-file-name name version))
117 (base32 "02dyqxjyxiqxrlz5g7v9ly8f095vs3iha39l75q6s8axs36y01lq"))))
119 ;; Optional: lcov and cccc, both are for code coverage
120 `(("doxygen" ,doxygen)))
123 ("qtdeclarative" ,qtdeclarative)
124 ("qtscript" ,qtscript)))
125 (build-system cmake-build-system)
128 (modify-phases %standard-phases
129 (add-before 'check 'check-setup
131 ;; make Qt render "offscreen", required for tests
132 (setenv "QT_QPA_PLATFORM" "offscreen")
134 (home-page "https://github.com/steveire/grantlee")
135 (synopsis "Libraries for text templating with Qt")
136 (description "Grantlee Templates can be used for theming and generation of
137 other text such as code. The syntax uses the syntax of the Django template
138 system, and the core design of Django is reused in Grantlee.")
139 (license license:lgpl2.1+)))
147 (uri (string-append "http://download.qt-project.org/archive/qt/"
148 (string-copy version 0 (string-rindex version #\.))
150 "/qt-everywhere-opensource-src-"
154 "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272"))
155 (patches (search-patches "qt4-ldflags.patch"))
156 (modules '((guix build utils)))
158 ;; Remove webkit module, which is not built.
159 '(begin (delete-file-recursively "src/3rdparty/webkit")
161 (build-system gnu-build-system)
165 `(("alsa-lib" ,alsa-lib)
169 ("double-conversion" ,double-conversion)
171 ("fontconfig" ,fontconfig)
172 ("freetype" ,freetype)
174 ("gstreamer" ,gstreamer)
175 ("gst-plugins-base" ,gst-plugins-base)
178 ("libinput" ,libinput-minimal)
185 ("libxcomposite" ,libxcomposite)
186 ("libxcursor" ,libxcursor)
188 ("libxfixes" ,libxfixes)
190 ("libxinerama" ,libxinerama)
191 ("libxkbcommon" ,libxkbcommon)
193 ("libxrandr" ,libxrandr)
194 ("libxrender" ,libxrender)
198 ("mariadb" ,mariadb "lib")
199 ("mariadb-dev" ,mariadb "dev")
201 ("postgresql" ,postgresql)
202 ("pulseaudio" ,pulseaudio)
206 ("unixodbc" ,unixodbc)
208 ("xcb-util" ,xcb-util)
209 ("xcb-util-image" ,xcb-util-image)
210 ("xcb-util-keysyms" ,xcb-util-keysyms)
211 ("xcb-util-renderutil" ,xcb-util-renderutil)
212 ("xcb-util-wm" ,xcb-util-wm)
214 ("libjpeg" ,libjpeg-turbo)
216 ("openssl" ,openssl-1.0)))
218 `(;; XXX: The JavaScriptCore engine does not build with the C++11 standard.
219 ;; We could build it with -std=gnu++98, but then we'll get in trouble with
220 ;; ICU later. Just keep using GCC 5 for now.
226 ("pkg-config" ,pkg-config)
229 ("which" ,(@ (gnu packages base) which))))
230 ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
231 ;; but we can't make them a separate output because "out" and "examples"
232 ;; would refer to each other.
233 (outputs '("out" ;112MiB core + 37MiB examples
234 "doc")) ;280MiB of HTML + code
237 (modify-phases %standard-phases
238 (add-after 'set-paths 'hide-default-gcc
239 (lambda* (#:key inputs #:allow-other-keys)
240 (let ((gcc (assoc-ref inputs "gcc")))
241 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
242 ;; conflicts with the GCC 5 input.
243 (setenv "CPLUS_INCLUDE_PATH"
245 (delete (string-append gcc "/include/c++")
246 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
251 (lambda* (#:key outputs #:allow-other-keys)
252 (let ((out (assoc-ref outputs "out"))
253 (doc (assoc-ref outputs "doc")))
254 (substitute* '("configure")
255 (("/bin/pwd") (which "pwd")))
256 (substitute* "src/corelib/global/global.pri"
257 (("/bin/ls") (which "ls")))
263 "-nomake" "examples demos"
264 ;; Note: Don't pass '-docdir' since 'qmake' and
265 ;; libQtCore would record its value, thereby defeating
266 ;; the whole point of having a separate output.
267 "-datadir" (string-append out "/share/qt-" ,version
269 "-importdir" (string-append out "/lib/qt-4"
271 "-plugindir" (string-append out "/lib/qt-4"
273 "-translationdir" (string-append out "/share/qt-" ,version
275 "-demosdir" (string-append out "/share/qt-" ,version
277 "-examplesdir" (string-append out "/share/qt-" ,version
281 ;; explicitly link with dbus instead of dlopening it
283 ;; Skip the webkit module; it fails to build on armhf
284 ;; and, apart from that, may pose security risks.
286 ;; don't use the precompiled headers
288 ;; drop special machine instructions not supported
289 ;; on all instances of the target
290 ,@(if (string-prefix? "x86_64"
291 (or (%current-target-system)
305 (lambda* (#:key outputs #:allow-other-keys)
306 ;; Because of qt4-documentation-path.patch, documentation ends up
307 ;; being installed in OUT. Move it to the right place.
308 (let* ((out (assoc-ref outputs "out"))
309 (doc (assoc-ref outputs "doc"))
310 (olddoc (string-append out "/doc"))
311 (docdir (string-append doc "/share/doc/qt-" ,version)))
312 (mkdir-p (dirname docdir))
314 ;; Note: We can't use 'rename-file' here because OUT and DOC are
315 ;; different "devices" due to bind-mounts.
316 (copy-recursively olddoc docdir)
317 (delete-file-recursively olddoc)
320 (list (search-path-specification
321 (variable "QMAKEPATH")
322 (files '("lib/qt5")))
323 (search-path-specification
324 (variable "QML2_IMPORT_PATH")
325 (files '("lib/qt5/qml")))
326 (search-path-specification
327 (variable "QT_PLUGIN_PATH")
328 (files '("lib/qt5/plugins")))
329 (search-path-specification
330 (variable "XDG_DATA_DIRS")
332 (search-path-specification
333 (variable "XDG_CONFIG_DIRS")
334 (files '("etc/xdg")))))
335 (home-page "https://www.qt.io/")
336 (synopsis "Cross-platform GUI library")
337 (description "Qt is a cross-platform application and UI framework for
338 developers using C++ or QML, a CSS & JavaScript like language.")
339 (license (list license:lgpl2.1 license:lgpl3))
341 ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
342 ;; see <http://hydra.gnu.org/build/112828>.
343 ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
344 (supported-systems (delete "mips64el-linux" %supported-systems))))
346 (define-public qtbase
349 ;; TODO Remove ((gnu packages kde) qtbase-for-krita) when upgrading qtbase.
353 (uri (string-append "https://download.qt.io/official_releases/qt/"
354 (version-major+minor version) "/" version
355 "/submodules/" name "-everywhere-src-"
359 "12mjsahlma9rw3vz9a6b5h2s6ylg8b34hxc2vnlna5ll429fgfa8"))
360 ;; Use TZDIR to avoid depending on package "tzdata".
361 (patches (search-patches "qtbase-use-TZDIR.patch"
362 "qtbase-moc-ignore-gcc-macro.patch"))
363 (modules '((guix build utils)))
365 ;; corelib uses bundled harfbuzz, md4, md5, sha3
367 (with-directory-excursion "src/3rdparty"
368 (for-each delete-file-recursively
369 (list "double-conversion" "freetype" "harfbuzz-ng"
370 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
373 (build-system gnu-build-system)
376 ;; Use which the package, not the function
377 ("which" ,(@ (gnu packages base) which))))
379 `(("alsa-lib" ,alsa-lib)
382 ("double-conversion" ,double-conversion)
385 ("fontconfig" ,fontconfig)
386 ("freetype" ,freetype)
388 ("harfbuzz" ,harfbuzz)
390 ("libinput" ,libinput-minimal)
391 ("libjpeg" ,libjpeg-turbo)
395 ("libxcomposite" ,libxcomposite)
396 ("libxcursor" ,libxcursor)
397 ("libxfixes" ,libxfixes)
399 ("libxinerama" ,libxinerama)
400 ("libxkbcommon" ,libxkbcommon)
402 ("libxrandr" ,libxrandr)
403 ("libxrender" ,libxrender)
407 ("mariadb" ,mariadb "lib")
408 ("mariadb-dev" ,mariadb "dev")
412 ("postgresql" ,postgresql)
413 ("pulseaudio" ,pulseaudio)
415 ("unixodbc" ,unixodbc)
416 ("xcb-util" ,xcb-util)
417 ("xcb-util-image" ,xcb-util-image)
418 ("xcb-util-keysyms" ,xcb-util-keysyms)
419 ("xcb-util-renderutil" ,xcb-util-renderutil)
420 ("xcb-util-wm" ,xcb-util-wm)
421 ("xdg-utils" ,xdg-utils)
428 ("pkg-config" ,pkg-config)
430 ("vulkan-headers" ,vulkan-headers)
434 (modify-phases %standard-phases
435 (add-after 'configure 'patch-bin-sh
437 (substitute* '("config.status"
439 "mkspecs/features/qt_functions.prf"
440 "qmake/library/qmakebuiltins.cpp")
441 (("/bin/sh") (which "sh")))
443 (add-after 'configure 'patch-xdg-open
445 (substitute* '("src/platformsupport/services/genericunix/qgenericunixservices.cpp")
446 (("^.*const char \\*browsers.*$" all)
447 (string-append "*browser = QStringLiteral(\""
449 "\"); return true; \n" all)))
452 (lambda* (#:key outputs #:allow-other-keys)
453 (let ((out (assoc-ref outputs "out")))
454 (substitute* "configure"
455 (("/bin/pwd") (which "pwd")))
456 (substitute* "src/corelib/global/global.pri"
457 (("/bin/ls") (which "ls")))
458 ;; The configuration files for other Qt5 packages are searched
459 ;; through a call to "find_package" in Qt5Config.cmake, which
460 ;; disables the use of CMAKE_PREFIX_PATH via the parameter
461 ;; "NO_DEFAULT_PATH". Re-enable it so that the different
462 ;; components can be installed in different places.
463 (substitute* (find-files "." ".*\\.cmake")
464 (("NO_DEFAULT_PATH") ""))
465 ;; do not pass "--enable-fast-install", which makes the
466 ;; configure process fail
471 "-docdir" (string-append out "/share/doc/qt5")
472 "-headerdir" (string-append out "/include/qt5")
473 "-archdatadir" (string-append out "/lib/qt5")
474 "-datadir" (string-append out "/share/qt5")
475 "-examplesdir" (string-append
476 out "/share/doc/qt5/examples")
480 ;; These features require higher versions of Linux than the
481 ;; minimum version of the glibc. See
482 ;; src/corelib/global/minimum-linux_p.h. By disabling these
483 ;; features Qt5 applications can be used on the oldest
484 ;; kernels that the glibc supports, including the RHEL6
485 ;; (2.6.32) and RHEL7 (3.10) kernels.
486 "-no-feature-getentropy" ; requires Linux 3.17
487 "-no-feature-renameat2" ; requires Linux 3.16
489 ;; Do not build examples; if desired, these could go
490 ;; into a separate output, but for the time being, we
491 ;; prefer to save the space and build time.
492 "-no-compile-examples"
493 ;; Most "-system-..." are automatic, but some use
494 ;; the bundled copy by default.
498 ;; explicitly link with openssl instead of dlopening it
500 ;; explicitly link with dbus instead of dlopening it
502 ;; don't use the precompiled headers
504 ;; drop special machine instructions that do not have
506 ,@(if (string-prefix? "x86_64"
507 (or (%current-target-system)
513 (add-after 'install 'patch-mkspecs
514 (lambda* (#:key outputs #:allow-other-keys)
515 (let* ((out (assoc-ref outputs "out"))
516 (archdata (string-append out "/lib/qt5"))
517 (mkspecs (string-append archdata "/mkspecs"))
518 (qt_config.prf (string-append
519 mkspecs "/features/qt_config.prf")))
520 ;; For each Qt module, let `qmake' uses search paths in the
521 ;; module directory instead of all in QT_INSTALL_PREFIX.
522 (substitute* qt_config.prf
523 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
524 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
525 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
526 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
527 (("\\$\\$\\[QT_HOST_LIBS\\]")
528 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
529 (("\\$\\$\\[QT_INSTALL_BINS\\]")
530 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
532 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
533 (substitute* (string-append mkspecs "/features/qt_functions.prf")
534 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
535 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
537 ;; Resolve qmake spec files within qtbase by absolute paths.
540 (string-append mkspecs "/features/" file))
541 '("device_config.prf" "moc.prf" "qt_build_config.prf"
542 "qt_config.prf" "winrt/package_manifest.prf"))
543 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
544 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
546 (add-after 'patch-mkspecs 'patch-prl-files
547 (lambda* (#:key outputs #:allow-other-keys)
548 (let ((out (assoc-ref outputs "out")))
549 ;; Insert absolute references to the qtbase libraries because
550 ;; QT_INSTALL_LIBS does not always resolve correctly, depending
551 ;; on context. See <https://bugs.gnu.org/38405>
552 (substitute* (find-files (string-append out "/lib") "\\.prl$")
553 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
554 (string-append out "/lib")))
556 (add-after 'unpack 'patch-paths
557 ;; Use the absolute paths for dynamically loaded libs, otherwise
558 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
560 (lambda* (#:key inputs #:allow-other-keys)
562 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
563 "cross-libc" "libc"))))
564 (substitute* '("src/network/kernel/qdnslookup_unix.cpp"
565 "src/network/kernel/qhostinfo_unix.cpp")
566 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
567 (string-append a glibc "/lib/lib" b))))
569 (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
570 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
571 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
573 (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp"
574 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
575 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
576 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
577 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
580 (list (search-path-specification
581 (variable "QMAKEPATH")
582 (files '("lib/qt5")))
583 (search-path-specification
584 (variable "QML2_IMPORT_PATH")
585 (files '("lib/qt5/qml")))
586 (search-path-specification
587 (variable "QT_PLUGIN_PATH")
588 (files '("lib/qt5/plugins")))
589 (search-path-specification
590 (variable "XDG_DATA_DIRS")
592 (search-path-specification
593 (variable "XDG_CONFIG_DIRS")
594 (files '("etc/xdg")))))
595 (home-page "https://www.qt.io/")
596 (synopsis "Cross-platform GUI library")
597 (description "Qt is a cross-platform application and UI framework for
598 developers using C++ or QML, a CSS & JavaScript like language.")
599 (license (list license:lgpl2.1 license:lgpl3))))
601 ;; qt used to refer to the monolithic Qt 5.x package
602 (define-deprecated qt qtbase)
604 ;; This variable is required by 'python-pyside-2-tools', which copies some
605 ;; qtbase executables that fail to run because RUNPATH refers to the
606 ;; wrong $ORIGIN. TODO: Merge with qtbase in the next rebuild cycle.
612 (inherit (package-source qtbase))
613 (patches (append (origin-patches (package-source qtbase))
614 (search-patches "qtbase-absolute-runpath.patch")))))))
616 (define-public qtbase-for-krita
621 (inherit (package-source qtbase))
622 (patches (append (origin-patches (package-source qtbase))
623 (search-patches "qtbase-fix-krita-deadlock.patch"))))))))
626 (package (inherit qtbase)
631 (uri (string-append "https://download.qt.io/official_releases/qt/"
632 (version-major+minor version) "/" version
633 "/submodules/" name "-everywhere-src-"
637 "18dmfc8s428fzbk7k5vl3212b25455ayrz7s716nwyiy3ahgmmy7"))))
638 (propagated-inputs `())
639 (native-inputs `(("perl" ,perl)))
646 (modify-phases %standard-phases
647 (add-before 'configure 'configure-qmake
648 (lambda* (#:key inputs outputs #:allow-other-keys)
649 (let* ((out (assoc-ref outputs "out"))
650 (qtbase (assoc-ref inputs "qtbase"))
651 (tmpdir (string-append (getenv "TMPDIR")))
652 (qmake (string-append tmpdir "/qmake"))
653 (qt.conf (string-append tmpdir "/qt.conf")))
654 ;; Use qmake with a customized qt.conf to override install
656 (symlink (which "qmake") qmake)
657 (setenv "PATH" (string-append tmpdir ":" (getenv "PATH")))
658 (with-output-to-file qt.conf
664 Documentation=share/doc/qt5
667 LibraryExecutables=lib/qt5/libexec
670 Plugins=lib/qt5/plugins
671 Imports=lib/qt5/imports
672 Qml2Imports=lib/qt5/qml
673 Translations=share/qt5/translations
675 Examples=share/doc/qt5/examples
681 [EffectiveSourcePaths]
687 (lambda* (#:key inputs outputs #:allow-other-keys)
688 ;; Valid QT_BUILD_PARTS variables are:
689 ;; libs tools tests examples demos docs translations
690 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests")))
691 (add-before 'check 'set-display
693 ;; make Qt render "offscreen", required for tests
694 (setenv "QT_QPA_PLATFORM" "offscreen")
696 (synopsis "Qt module for displaying SVGs")
697 (description "The QtSvg module provides classes for displaying the
698 contents of SVG files.")))
700 (define-public qtimageformats
701 (package (inherit qtsvg)
702 (name "qtimageformats")
706 (uri (string-append "https://download.qt.io/official_releases/qt/"
707 (version-major+minor version) "/" version
708 "/submodules/" name "-everywhere-src-"
712 "132g4rlm61pdcpcrclr1rwpbrxn7va4wjfb021mh8pn1cl0wlgkk"))
713 (modules '((guix build utils)))
716 (delete-file-recursively "src/3rdparty")
719 (substitute-keyword-arguments (package-arguments qtsvg)
721 `(modify-phases ,phases
722 (add-after 'unpack 'fix-build
724 (substitute* "src/plugins/imageformats/jp2/qjp2handler.cpp"
725 (("^#include <jasper/jasper.h>")
726 "#include <jasper/jasper.h>\n#include <QtCore/qmath.h>"))
737 (synopsis "Additional Image Format plugins for Qt")
738 (description "The QtImageFormats module contains plugins for adding
739 support for MNG, TGA, TIFF and WBMP image formats.")))
741 (define-public qtx11extras
742 (package (inherit qtsvg)
747 (uri (string-append "https://download.qt.io/official_releases/qt/"
748 (version-major+minor version) "/" version
749 "/submodules/" name "-everywhere-src-"
753 "0njlh6d327nll7d8qaqrwr5x15m9yzgyar2j45qigs1f7ah896my"))))
755 (substitute-keyword-arguments (package-arguments qtsvg)
756 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
757 (native-inputs `(("perl" ,perl)))
761 (synopsis "Qt Extras for X11")
762 (description "The QtX11Extras module includes the library to access X11
763 from within Qt 5.")))
765 (define-public qtxmlpatterns
766 (package (inherit qtsvg)
767 (name "qtxmlpatterns")
771 (uri (string-append "https://download.qt.io/official_releases/qt/"
772 (version-major+minor version) "/" version
773 "/submodules/" name "-everywhere-src-"
777 "1dyg1z4349k04yyzn8xbp4f5qjgm60gz6wgzp80khpilcmk8g6i1"))))
779 (substitute-keyword-arguments (package-arguments qtsvg)
780 ((#:tests? _ #f) #f) ; TODO: Enable the tests
782 `(modify-phases ,phases
783 (add-after 'unpack 'disable-network-tests
784 (lambda _ (substitute* "tests/auto/auto.pro"
785 (("qxmlquery") "# qxmlquery")
786 (("xmlpatterns ") "# xmlpatterns"))
788 (native-inputs `(("perl" ,perl)
789 ("qtdeclarative" ,qtdeclarative)))
790 (inputs `(("qtbase" ,qtbase)))
791 (synopsis "Qt XML patterns module")
792 (description "The QtXmlPatterns module is a XQuery and XPath engine for
793 XML and custom data models. It contains programs such as xmlpatterns and
794 xmlpatternsvalidator.")))
796 (define-public qtdeclarative
797 (package (inherit qtsvg)
798 (name "qtdeclarative")
802 (uri (string-append "https://download.qt.io/official_releases/qt/"
803 (version-major+minor version) "/" version
804 "/submodules/" name "-everywhere-src-"
808 "0l0nhc2si6dl9r4s1bs45z90qqigs8jnrsyjjdy38q4pvix63i53"))))
810 (substitute-keyword-arguments (package-arguments qtsvg)
811 ((#:tests? _ #f) #f) ;TODO: Enable the tests
813 `(modify-phases ,phases
814 (add-after 'build 'fix-qt5core-install-prefix
815 (lambda* (#:key outputs #:allow-other-keys)
816 (let ((out (assoc-ref outputs "out")))
817 ;; The Qt5Core install prefix is set to qtbase, but qmlcachegen
818 ;; is provided by qtdeclarative.
820 "lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake"
821 (("\\$\\{_qt5Core_install_prefix\\}") out)))
825 ("pkg-config" ,pkg-config)
827 ("python-wrapper" ,python-wrapper)
829 ("vulkan-headers" ,vulkan-headers)))
833 (synopsis "Qt QML module (Quick 2)")
834 (description "The Qt QML module provides a framework for developing
835 applications and libraries with the QML language. It defines and implements the
836 language and engine infrastructure, and provides an API to enable application
837 developers to extend the QML language with custom types and integrate QML code
838 with JavaScript and C++.")))
840 (define-public qtconnectivity
841 (package (inherit qtsvg)
842 (name "qtconnectivity")
846 (uri (string-append "https://download.qt.io/official_releases/qt/"
847 (version-major+minor version) "/" version
848 "/submodules/" name "-everywhere-src-"
852 "0a5wzin635b926b8prdwfazgy1vhyf8m6an64wp2lpkp78z7prmb"))))
855 ("pkg-config" ,pkg-config)
856 ("qtdeclarative" ,qtdeclarative)))
860 (synopsis "Qt Connectivity module")
861 (description "The Qt Connectivity modules provides modules for interacting
862 with Bluetooth and NFC.")))
864 (define-public qtwebsockets
865 (package (inherit qtsvg)
866 (name "qtwebsockets")
870 (uri (string-append "https://download.qt.io/official_releases/qt/"
871 (version-major+minor version) "/" version
872 "/submodules/" name "-everywhere-src-"
876 "116amx4mnv50k0fpswgpr5x8wjny8nbffrjmld01pzhkhfqn4vph"))))
878 (substitute-keyword-arguments (package-arguments qtsvg)
879 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
882 ("qtdeclarative" ,qtdeclarative)))
883 (inputs `(("qtbase" ,qtbase)))
884 (synopsis "Qt Web Sockets module")
885 (description "WebSocket is a web-based protocol designed to enable two-way
886 communication between a client application and a remote host. The Qt
887 WebSockets module provides C++ and QML interfaces that enable Qt applications
888 to act as a server that can process WebSocket requests, or a client that can
889 consume data received from the server, or both.")))
891 (define-public qtsensors
892 (package (inherit qtsvg)
897 (uri (string-append "https://download.qt.io/official_releases/qt/"
898 (version-major+minor version) "/" version
899 "/submodules/" name "-everywhere-src-"
903 "0qccpgbhyg9k4x5nni7xm0pyvaqia3zrcd42cn7ksf5h21lwmkxw"))))
905 (substitute-keyword-arguments (package-arguments qtsvg)
906 ((#:parallel-tests? _ #f) #f) ; can lead to race condition
908 `(modify-phases ,phases
909 (add-after 'unpack 'fix-tests
911 (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp"
912 (("2000") "5000") ;lengthen test timeout
913 (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test
917 ("qtdeclarative" ,qtdeclarative)))
918 (inputs `(("qtbase" ,qtbase)))
919 (synopsis "Qt Sensors module")
920 (description "The Qt Sensors API provides access to sensor hardware via QML
921 and C++ interfaces. The Qt Sensors API also provides a motion gesture
922 recognition API for devices.")))
924 (define-public qtmultimedia
925 (package (inherit qtsvg)
926 (name "qtmultimedia")
930 (uri (string-append "https://download.qt.io/official_releases/qt/"
931 (version-major+minor version) "/" version
932 "/submodules/" name "-everywhere-src-"
936 "1sczzcvk3c5gczz53yvp8ma6gp8aixk5pcq7wh344c9md3g8xkbs"))
937 (modules '((guix build utils)))
940 (delete-file-recursively
941 "examples/multimedia/spectrum/3rdparty")
942 ;; We also prevent the spectrum example from being built.
943 (substitute* "examples/multimedia/multimedia.pro"
947 (substitute-keyword-arguments (package-arguments qtsvg)
949 `(modify-phases ,phases
951 (lambda* (#:key outputs #:allow-other-keys)
952 (let ((out (assoc-ref outputs "out")))
953 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"
954 (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,")
955 (string-append "PREFIX=" out)))))))
956 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
959 ("pkg-config" ,pkg-config)
961 ("qtdeclarative" ,qtdeclarative)))
963 `(("alsa-lib" ,alsa-lib)
965 ("pulseaudio" ,pulseaudio)
967 ;; Gstreamer is needed for the mediaplayer plugin
968 ("gstreamer" ,gstreamer)
969 ("gst-plugins-base" ,gst-plugins-base)))
970 (synopsis "Qt Multimedia module")
971 (description "The Qt Multimedia module provides set of APIs to play and
972 record media, and manage a collection of media content. It also contains a
973 set of plugins for interacting with pulseaudio and GStreamer.")))
975 (define-public qtwayland
976 (package (inherit qtsvg)
981 (uri (string-append "https://download.qt.io/official_releases/qt/"
982 (version-major+minor version) "/" version
983 "/submodules/" name "-everywhere-src-"
987 "0al3yypy3fin62n8d1859jh0mn0fbpa161l7f37hgd4gf75365nk"))
988 (modules '((guix build utils)))
990 ;; The examples try to build and cause the build to fail
992 (delete-file-recursively "examples")
995 (substitute-keyword-arguments (package-arguments qtsvg)
997 `(modify-phases ,phases
998 (add-after 'unpack 'disable-failing-tests
1000 ;; FIXME: tst_seatv4::animatedCursor() fails for no good
1001 ;; reason and breaks these two tests.
1002 (substitute* "tests/auto/client/seatv4/tst_seatv4.cpp"
1003 (((string-append "QVERIFY\\(!cursorSurface\\(\\)->"
1004 "m_waitingFrameCallbacks\\.empty\\(\\)\\);"))
1006 (("QTRY_COMPARE\\(bufferSpy\\.count\\(\\), 1\\);")
1009 (add-before 'check 'set-test-environment
1011 ;; Do not fail just because /etc/machine-id is missing.
1012 (setenv "DBUS_FATAL_WARNINGS" "0")
1017 ("pkg-config" ,pkg-config)
1018 ("qtdeclarative" ,qtdeclarative)))
1020 `(("fontconfig" ,fontconfig)
1021 ("freetype" ,freetype)
1023 ("libxcomposite" ,libxcomposite)
1024 ("libxext" ,libxext)
1025 ("libxkbcommon" ,libxkbcommon)
1026 ("libxrender" ,libxrender)
1030 ("wayland" ,wayland)))
1031 (synopsis "Qt Wayland module")
1032 (description "The Qt Wayland module provides the QtWayland client and
1033 compositor libraries.")))
1035 (define-public qtserialport
1036 (package (inherit qtsvg)
1037 (name "qtserialport")
1041 (uri (string-append "https://download.qt.io/official_releases/qt/"
1042 (version-major+minor version) "/" version
1043 "/submodules/" name "-everywhere-src-"
1047 "08ga9a1lwj83872nxablk602z1dq0la6jqsiicvd7m1sfbfpgnd6"))))
1048 (native-inputs `(("perl" ,perl)))
1050 `(("qtbase" ,qtbase)
1053 (substitute-keyword-arguments (package-arguments qtsvg)
1055 `(modify-phases ,phases
1056 (add-after 'unpack 'patch-dlopen-paths
1057 (lambda* (#:key inputs #:allow-other-keys)
1058 (substitute* "src/serialport/qtudev_p.h"
1059 ;; Use the absolute paths for dynamically loaded libs,
1060 ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
1061 ;; typically is not set in guix.
1062 (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
1063 (string-append a (assoc-ref inputs "eudev") "/lib/lib" b)))
1065 (synopsis "Qt Serial Port module")
1066 (description "The Qt Serial Port module provides the library for
1067 interacting with serial ports from within Qt.")))
1069 (define-public qtserialbus
1070 (package (inherit qtsvg)
1071 (name "qtserialbus")
1075 (uri (string-append "https://download.qt.io/official_releases/qt/"
1076 (version-major+minor version) "/" version
1077 "/submodules/" name "-everywhere-src-"
1081 "14bahg82jciciqkl74q9hvf3a8kp3pk5v731vp2416k4b8bn4xqb"))))
1083 (substitute-keyword-arguments (package-arguments qtsvg)
1084 ((#:phases phases '%standard-phases)
1085 `(modify-phases ,phases
1086 (add-after 'unpack 'patch-libsocketcan-reference
1087 (lambda* (#:key inputs #:allow-other-keys)
1088 (let* ((libcansocket (assoc-ref inputs "libsocketcan"))
1089 (libcansocket.so (string-append libcansocket
1090 "/lib/libsocketcan.so")))
1091 (substitute* "src/plugins/canbus/socketcan/libsocketcan.cpp"
1092 (("QStringLiteral\\(\"socketcan\"\\)")
1093 (format #f "QStringLiteral(~s)" libcansocket.so)))
1096 `(("libsocketcan" ,libsocketcan)
1098 ("qtserialport" ,qtserialport)))
1099 (synopsis "Qt Serial Bus module")
1100 (description "The Qt Serial Bus API provides classes and functions to
1101 access the various industrial serial buses and protocols, such as CAN, ModBus,
1104 (define-public qtwebchannel
1105 (package (inherit qtsvg)
1106 (name "qtwebchannel")
1110 (uri (string-append "https://download.qt.io/official_releases/qt/"
1111 (version-major+minor version) "/" version
1112 "/submodules/" name "-everywhere-src-"
1116 "0x7q66994pw6cd0f505bmirw1sssqs740zaw8lyqqqr32m2ch7bx"))))
1119 ("qtdeclarative" ,qtdeclarative)
1120 ("qtwebsockets" ,qtwebsockets)))
1121 (inputs `(("qtbase" ,qtbase)))
1122 (synopsis "Web communication library for Qt")
1123 (description "The Qt WebChannel module enables peer-to-peer communication
1124 between the host (QML/C++ application) and the client (HTML/JavaScript
1125 application). The transport mechanism is supported out of the box by the two
1126 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
1128 (define-public qtwebglplugin
1129 (package (inherit qtsvg)
1130 (name "qtwebglplugin")
1134 (uri (string-append "https://download.qt.io/official_releases/qt/"
1135 (version-major+minor version) "/" version
1136 "/submodules/" name "-everywhere-src-"
1140 "05rl657848fsprsnabdqb5z363c6drjc32k59223vl351f8ihhgb"))))
1142 (substitute-keyword-arguments (package-arguments qtsvg)
1144 `(modify-phases ,phases
1145 (add-after 'unpack 'disable-network-tests
1146 (lambda _ (substitute* "tests/plugins/platforms/platforms.pro"
1147 (("webgl") "# webgl"))
1153 ("qtdeclarative" ,qtdeclarative)
1154 ("qtwebsockets" ,qtwebsockets)
1156 (synopsis "QPA plugin for running an application via a browser using
1157 streamed WebGL commands")
1158 (description "Qt back end that uses WebGL for rendering. It allows Qt
1159 applications (with some limitations) to run in a web browser that supports
1160 WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
1161 compatible web browser without the use of plug-ins. The API is similar to
1162 OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
1164 (define-public qtwebview
1165 (package (inherit qtsvg)
1170 (uri (string-append "https://download.qt.io/official_releases/qt/"
1171 (version-major+minor version) "/" version
1172 "/submodules/" name "-everywhere-src-"
1176 "0jzzcm7z5njkddzfhmyjz4dbbzq8h93980cci4479zc4xq9r47y6"))))
1180 `(("qtbase" ,qtbase)
1181 ("qtdeclarative" ,qtdeclarative)))
1182 (synopsis "Display web content in a QML application")
1183 (description "Qt WebView provides a way to display web content in a QML
1184 application without necessarily including a full web browser stack by using
1185 native APIs where it makes sense.")))
1187 (define-public qtlocation
1188 (package (inherit qtsvg)
1193 (uri (string-append "https://download.qt.io/official_releases/qt/"
1194 (version-major+minor version) "/" version
1195 "/submodules/" name "-everywhere-src-"
1199 "1k3m8zhbv04yrqvj7jlnh8f9xczdsmla59j9gcwsqvbg76y0hxy3"))))
1201 (substitute-keyword-arguments (package-arguments qtsvg)
1202 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1205 ("qtdeclarative" ,qtdeclarative)
1206 ("qtquickcontrols" ,qtquickcontrols)
1207 ("qtserialport" ,qtserialport)))
1210 ("openssl" ,openssl)
1213 (synopsis "Qt Location and Positioning modules")
1214 (description "The Qt Location module provides an interface for location,
1215 positioning and geolocation plugins.")))
1217 (define-public qttools
1218 (package (inherit qtsvg)
1223 (uri (string-append "https://download.qt.io/official_releases/qt/"
1224 (version-major+minor version) "/" version
1225 "/submodules/" name "-everywhere-src-"
1229 "1iakl3hlyg51ri1czmis8mmb257b0y1zk2a2knybd3mq69wczc2v"))))
1231 (substitute-keyword-arguments (package-arguments qtsvg)
1232 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1235 ("qtdeclarative" ,qtdeclarative)
1236 ("vulkan-headers" ,vulkan-headers)))
1239 ("qtbase" ,qtbase)))
1240 (synopsis "Qt Tools and Designer modules")
1241 (description "The Qt Tools module provides a set of applications to browse
1242 the documentation, translate applications, generate help files and other stuff
1243 that helps in Qt development.")))
1245 (define-public qtscript
1246 (package (inherit qtsvg)
1251 (uri (string-append "https://download.qt.io/official_releases/qt/"
1252 (version-major+minor version) "/" version
1253 "/submodules/" name "-everywhere-src-"
1257 "1zlvg3hc6h70d789g3kv6dxbwswzkskkm00bdgl01grwrdy4izg9"))
1258 (patches (search-patches "qtscript-disable-tests.patch"))))
1261 ("qttools" ,qttools)))
1263 `(("qtbase" ,qtbase)))
1264 (synopsis "Qt Script module")
1265 (description "Qt provides support for application scripting with ECMAScript.
1266 The following guides and references cover aspects of programming with
1267 ECMAScript and Qt.")))
1269 (define-public qtquickcontrols
1270 (package (inherit qtsvg)
1271 (name "qtquickcontrols")
1275 (uri (string-append "https://download.qt.io/official_releases/qt/"
1276 (version-major+minor version) "/" version
1277 "/submodules/" name "-everywhere-src-"
1281 "0qa4dlhn3iv9yvaic8hw86v6h8rn9sgq8xjfdaym04pfshfyypfm"))))
1283 (substitute-keyword-arguments (package-arguments qtsvg)
1284 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1286 `(("qtbase" ,qtbase)
1287 ("qtdeclarative" ,qtdeclarative)))
1288 (synopsis "Qt Quick Controls and other Quick modules")
1289 (description "The QtScript module provides classes for making Qt
1290 applications scriptable. This module provides a set of extra components that
1291 can be used to build complete interfaces in Qt Quick.")))
1293 (define-public qtquickcontrols2
1294 (package (inherit qtsvg)
1295 (name "qtquickcontrols2")
1299 (uri (string-append "https://download.qt.io/official_releases/qt/"
1300 (version-major+minor version) "/" version
1301 "/submodules/" name "-everywhere-src-"
1305 "0q0mk2mjlf9ll0gdrdzxy8096s6g9draaqiwrlvdpa7lv14x7xzs"))))
1307 (substitute-keyword-arguments (package-arguments qtsvg)
1308 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1310 `(("qtbase" ,qtbase)
1311 ("qtdeclarative" ,qtdeclarative)))
1312 (synopsis "Qt Quick Controls 2 and other Quick 2 modules")
1313 (description "The Qt Quick Controls 2 module contains the Qt Labs Platform
1314 module that provides platform integration: native dialogs, menus and menu bars,
1315 and tray icons. It falls back to Qt Widgets when a native implementation is
1318 (define-public qtgraphicaleffects
1319 (package (inherit qtsvg)
1320 (name "qtgraphicaleffects")
1324 (uri (string-append "https://download.qt.io/official_releases/qt/"
1325 (version-major+minor version) "/" version
1326 "/submodules/" name "-everywhere-src-"
1330 "03xmwhapv0b2qj661iaqqrvhxc7qiid0acrp6rj85824ha2pyyj8"))))
1332 (substitute-keyword-arguments (package-arguments qtsvg)
1333 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1335 `(("qtbase" ,qtbase)
1336 ("qtdeclarative" ,qtdeclarative)))
1337 (synopsis "Qt Graphical Effects module")
1338 (description "The Qt Graphical Effects module provides a set of QML types
1339 for adding visually impressive and configurable effects to user interfaces.
1340 Effects are visual items that can be added to Qt Quick user interface as UI
1341 components. The API consists of over 20 effects provided as separate QML
1342 types. The effects cover functional areas such as blending, masking, blurring,
1343 coloring, and many more.")))
1345 (define-public qtgamepad
1346 (package (inherit qtsvg)
1351 (uri (string-append "https://download.qt.io/official_releases/qt/"
1352 (version-major+minor version) "/" version
1353 "/submodules/" name "-everywhere-src-"
1357 "00wd3h465waxdghg2vdhs5pkj0xikwjn88l12477dksm8zdslzgp"))))
1360 ("pkg-config" ,pkg-config)))
1362 `(("fontconfig" ,fontconfig)
1363 ("freetype" ,freetype)
1364 ("libxrender" ,libxrender)
1367 ("qtdeclarative" ,qtdeclarative)))
1368 (synopsis "Qt Gamepad module")
1369 (description "The Qt Gamepad module is an add-on library that enables Qt
1370 applications to support the use of gamepad hardware and in some cases remote
1371 control equipment. The module provides both QML and C++ interfaces. The
1372 primary target audience are embedded devices with fullscreen user interfaces,
1373 and mobile applications targeting TV-like form factors.")))
1375 (define-public qtscxml
1376 (package (inherit qtsvg)
1381 (uri (string-append "https://download.qt.io/official_releases/qt/"
1382 (version-major+minor version) "/" version
1383 "/submodules/" name "-everywhere-src-"
1387 "141pfschv6zmcvvn3pi7f5vb4nf96zpngy80f9bly1sn58syl303"))
1388 (modules '((guix build utils)))
1391 (delete-file-recursively "tests/3rdparty")
1392 ;; the scion test refers to the bundled 3rd party test code.
1393 (substitute* "tests/auto/auto.pro"
1397 `(("qtbase" ,qtbase)
1398 ("qtdeclarative" ,qtdeclarative)))
1399 (synopsis "Qt SCXML module")
1400 (description "The Qt SCXML module provides functionality to create state
1401 machines from SCXML files. This includes both dynamically creating state
1402 machines (loading the SCXML file and instantiating states and transitions) and
1403 generating a C++ file that has a class implementing the state machine. It
1404 also contains functionality to support data models and executable content.")))
1406 (define-public qtpurchasing
1407 (package (inherit qtsvg)
1408 (name "qtpurchasing")
1412 (uri (string-append "https://download.qt.io/official_releases/qt/"
1413 (version-major+minor version) "/" version
1414 "/submodules/" name "-everywhere-src-"
1418 "0lg8x7g7dkf95xwxq8b4yw4ypdz68igkscya96xwbklg3q08gc39"))))
1420 `(("qtbase" ,qtbase)
1421 ("qtdeclarative" ,qtdeclarative)))
1422 (synopsis "Qt Purchasing module")
1423 (description "The Qt Purchasing module provides and in-app API for
1424 purchasing goods and services.")))
1426 (define-public qtcharts
1427 (package (inherit qtsvg)
1432 (uri (string-append "https://download.qt.io/official_releases/qt/"
1433 (version-major+minor version) "/" version
1434 "/submodules/" name "-everywhere-src-"
1438 "1drvm15i6n10b6a1acgarig120ppvqh3r6fqqdn8i3blx81m5cmd"))))
1440 (substitute-keyword-arguments (package-arguments qtsvg)
1441 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1443 `(("qtbase" ,qtbase)
1444 ("qtdeclarative" ,qtdeclarative)))
1445 (synopsis "Qt Charts module")
1446 (description "The Qt Charts module provides a set of easy to use chart
1447 components. It uses the Qt Graphics View Framework, therefore charts can be
1448 easily integrated to modern user interfaces. Qt Charts can be used as QWidgets,
1449 QGraphicsWidget, or QML types. Users can easily create impressive graphs by
1450 selecting one of the charts themes.")
1451 (license license:gpl3)))
1453 (define-public qtdatavis3d
1454 (package (inherit qtsvg)
1455 (name "qtdatavis3d")
1459 (uri (string-append "https://download.qt.io/official_releases/qt/"
1460 (version-major+minor version) "/" version
1461 "/submodules/" name "-everywhere-src-"
1465 "080fkpxg70m3c697wfnkjhca58b7r1xsqd559jzb21985pdh6g3j"))))
1467 (substitute-keyword-arguments (package-arguments qtsvg)
1468 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1470 `(("qtbase" ,qtbase)
1471 ("qtdeclarative" ,qtdeclarative)))
1472 (synopsis "Qt Data Visualization module")
1473 (description "The Qt Data Visualization module provides a way to visualize
1474 data in 3D as bar, scatter, and surface graphs. It is especially useful for
1475 visualizing depth maps and large quantities of rapidly changing data, such as
1476 data received from multiple sensors. The look and feel of graphs can be
1477 customized by using themes or by adding custom items and labels to them.")
1478 (license license:gpl3)))
1480 (define-public qtnetworkauth
1481 (package (inherit qtsvg)
1482 (name "qtnetworkauth")
1486 (uri (string-append "https://download.qt.io/official_releases/qt/"
1487 (version-major+minor version) "/" version
1488 "/submodules/" name "-everywhere-src-"
1492 "0pi6p7bq54kzij2p69cgib7n55k69jsq0yqq09yli645s4ym202g"))))
1494 (substitute-keyword-arguments (package-arguments qtsvg)
1496 `(modify-phases ,phases
1497 (add-after 'unpack 'remove-failing-test
1499 ;; These tests can't find their test data.
1500 (substitute* "tests/auto/auto.pro"
1501 (("oauth1 ") "# oauth1 "))
1504 `(("qtbase" ,qtbase)))
1505 (synopsis "Qt Network Authorization module")
1506 (description "The Qt Network Authorization module provides an
1507 implementation of OAuth and OAuth2 authenticathon methods for Qt.")))
1509 (define-public qtremoteobjects
1510 (package (inherit qtsvg)
1511 (name "qtremoteobjects")
1515 (uri (string-append "https://download.qt.io/official_releases/qt/"
1516 (version-major+minor version) "/" version
1517 "/submodules/" name "-everywhere-src-"
1521 "1mhlws5w0igf5hw0l90p6dz6k7w16dqfbnk2li0zxdmayk2039m6"))))
1523 (substitute-keyword-arguments (package-arguments qtsvg)
1525 `(modify-phases ,phases
1526 (add-after 'unpack 'remove-failing-test
1528 ;; This test can't find its imports.
1529 (substitute* "tests/auto/qml/qml.pro"
1530 (("integration") "# integration")
1531 (("usertypes") "# usertypes"))
1532 ;; disable failing tests: they need network
1533 (substitute* "tests/auto/auto.pro"
1534 (("integration_multiprocess proxy_multiprocess integration_external restart")
1535 "integration_multiprocess"))
1538 `(("qtbase" ,qtbase)
1539 ("qtdeclarative" ,qtdeclarative)))
1540 (synopsis "Qt Remote Objects module")
1541 (description "The Qt Remote Objects module is an @dfn{inter-process
1542 communication} (IPC) module developed for Qt. The idea is to extend existing
1543 Qt's functionalities to enable an easy exchange of information between
1544 processes or computers.")))
1546 (define-public qtspeech
1547 (package (inherit qtsvg)
1552 (uri (string-append "https://download.qt.io/official_releases/qt/"
1553 (version-major+minor version) "/" version
1554 "/submodules/" name "-everywhere-src-"
1558 "1nn6kspbp8hfkz1jhzc1qx1m9z7r1bgkdqgi9n4vl1q25yk8x7jy"))))
1561 (substitute-keyword-arguments (package-arguments qtsvg)
1562 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1564 `(("qtbase" ,qtbase)))
1567 ("qtdeclarative" ,qtdeclarative)
1568 ("qtmultimedia" ,qtmultimedia)
1569 ("qtxmlpatterns" ,qtxmlpatterns)))
1570 (synopsis "Qt Speech module")
1571 (description "The Qt Speech module enables a Qt application to support
1572 accessibility features such as text-to-speech, which is useful for end-users
1573 who are visually challenged or cannot access the application for whatever
1574 reason. The most common use case where text-to-speech comes in handy is when
1575 the end-user is driving and cannot attend the incoming messages on the phone.
1576 In such a scenario, the messaging application can read out the incoming
1579 (define-public qtspell
1587 (url "https://github.com/manisandro/qtspell.git")
1589 (file-name (git-file-name name version))
1591 (base32 "1081makirjxixz44ghwz362vgnk5wcks6ni6w01pl667x8wggsd2"))))
1592 (build-system cmake-build-system)
1594 `(#:tests? #f)) ;no test
1596 `(("pkg-config" ,pkg-config)
1597 ("qttools" ,qttools)))
1599 `(("enchant" ,enchant)
1600 ("qtbase" ,qtbase)))
1601 (home-page "https://github.com/manisandro/qtspell")
1602 (synopsis "Spell checking for Qt text widgets")
1604 "QtSpell adds spell-checking functionality to Qt's text widgets,
1605 using the Enchant spell-checking library.")
1606 ;; COPYING file specify GPL3, but source code files all refer to GPL2+.
1607 (license license:gpl2+)))
1609 (define-public qtwebengine
1612 (name "qtwebengine")
1613 (version (package-version qtbase))
1617 (uri (string-append "https://download.qt.io/official_releases/qt/"
1618 (version-major+minor version) "/" version
1619 "/submodules/" name "-everywhere-src-"
1623 "0iy9lsl6zxlkca6x2p1506hbj3wmhnaipg23z027wfccbnkxcsg1"))
1624 (modules '((ice-9 ftw)
1628 (guix build utils)))
1631 (let ((preserved-third-party-files
1632 '("base/third_party/cityhash"
1633 "base/third_party/dmg_fp"
1634 "base/third_party/dynamic_annotations"
1635 "base/third_party/icu"
1636 "base/third_party/libevent"
1637 "base/third_party/nspr"
1638 "base/third_party/superfasthash"
1639 "base/third_party/symbolize"
1640 "base/third_party/xdg_mime"
1641 "base/third_party/xdg_user_dirs"
1642 "net/third_party/mozilla_security_manager"
1643 "net/third_party/nss"
1644 "net/third_party/quiche"
1645 "net/third_party/uri_template"
1646 "third_party/abseil-cpp"
1648 "third_party/angle/src/common/third_party/base"
1649 "third_party/angle/src/common/third_party/smhasher"
1650 "third_party/angle/src/common/third_party/xxhash"
1651 "third_party/angle/src/third_party/compiler"
1652 "third_party/axe-core"
1654 "third_party/boringssl"
1655 "third_party/boringssl/src/third_party/fiat"
1656 "third_party/boringssl/src/third_party/sike"
1657 "third_party/boringssl/linux-x86_64/crypto/third_party/sike"
1658 "third_party/boringssl/linux-aarch64/crypto/third_party/sike"
1659 "third_party/breakpad"
1660 "third_party/brotli"
1663 "third_party/crc32c"
1666 "third_party/emoji-segmenter"
1667 "third_party/ffmpeg"
1668 "third_party/googletest"
1669 "third_party/hunspell"
1670 "third_party/iccjpeg"
1672 "third_party/inspector_protocol"
1673 "third_party/jinja2"
1674 "third_party/jsoncpp"
1675 "third_party/jstemplate"
1676 "third_party/khronos"
1677 "third_party/leveldatabase"
1678 "third_party/libaddressinput"
1679 "third_party/libjingle_xmpp"
1680 "third_party/libjpeg"
1681 "third_party/libpng"
1682 "third_party/libsrtp"
1683 "third_party/libsync"
1684 "third_party/libudev"
1685 "third_party/libvpx"
1686 "third_party/libwebm"
1687 "third_party/libwebp"
1688 "third_party/libxml"
1689 "third_party/libxslt"
1690 "third_party/libyuv"
1692 "third_party/markupsafe"
1693 "third_party/mesa_headers"
1694 "third_party/metrics_proto"
1695 "third_party/modp_b64"
1697 "third_party/one_euro_filter"
1700 "third_party/perfetto"
1703 "third_party/polymer"
1704 "third_party/protobuf"
1705 "third_party/pyjson5"
1707 "third_party/rnnoise"
1709 "third_party/skia/include/third_party/skcms/skcms.h"
1710 "third_party/skia/include/third_party/vulkan"
1711 "third_party/skia/third_party/gif"
1712 "third_party/skia/third_party/skcms"
1713 "third_party/skia/third_party/vulkanmemoryallocator"
1714 "third_party/smhasher"
1715 "third_party/snappy"
1716 "third_party/sqlite"
1717 "third_party/usb_ids"
1718 "third_party/usrsctp"
1719 "third_party/web-animations-js"
1720 "third_party/webrtc"
1721 "third_party/webrtc/common_audio/third_party/fft4g"
1722 "third_party/webrtc/common_audio/third_party/spl_sqrt_floor"
1723 "third_party/webrtc/modules/third_party/fft"
1724 "third_party/webrtc/modules/third_party/g711"
1725 "third_party/webrtc/modules/third_party/g722"
1726 "third_party/webrtc/rtc_base/third_party/base64"
1727 "third_party/webrtc/rtc_base/third_party/sigslot"
1728 "third_party/webrtc_overrides"
1729 "third_party/widevine/cdm/widevine_cdm_common.h"
1730 "third_party/widevine/cdm/widevine_cdm_version.h"
1734 "url/third_party/mozilla"
1735 "v8/src/third_party/utf8-decoder"
1736 "v8/src/third_party/valgrind"
1737 "v8/src/third_party/siphash"
1738 "v8/third_party/v8/builtins"
1739 "v8/third_party/inspector_protocol"))
1740 (protected (make-regexp "\\.(gn|gyp)i?$")))
1741 (define preserved-club
1742 (map (lambda (member)
1743 (string-append "./" member))
1744 preserved-third-party-files))
1745 (define (empty? dir)
1746 (equal? (scandir dir) '("." "..")))
1747 (define (third-party? file)
1748 (string-contains file "third_party/"))
1749 (define (useless? file)
1750 (any (cute string-suffix? <> file)
1751 '(".zip" ".so" ".dll" ".exe" ".jar")))
1752 (define (parents child)
1753 ;; Return all parent directories of CHILD up to and including
1754 ;; the closest "third_party".
1755 (let* ((dirs (match (string-split child #\/)
1756 ((dirs ... last) dirs)))
1757 (closest (list-index (lambda (dir)
1758 (string=? "third_party" dir))
1760 (delim (- (length dirs) closest)))
1761 (fold (lambda (dir prev)
1762 (cons (string-append (car prev) "/" dir)
1764 (list (string-join (list-head dirs delim) "/"))
1765 (list-tail dirs delim))))
1766 (define (remove-loudly file)
1767 (format #t "deleting ~a...~%" file)
1770 (define (delete-unwanted-files child stat flag base level)
1772 ((or 'regular 'symlink 'stale-symlink)
1773 (when (third-party? child)
1774 (unless (or (member child preserved-club)
1775 (any (cute member <> preserved-club)
1777 (regexp-exec protected child))
1778 (remove-loudly child)))
1779 (when (and (useless? child) (file-exists? child))
1780 (remove-loudly child))
1782 ('directory-processed
1783 (when (empty? child)
1788 (with-directory-excursion "src/3rdparty"
1789 ;; TODO: Try removing "gn" too for future versions of qtwebengine.
1790 (delete-file-recursively "ninja")
1792 (with-directory-excursion "chromium"
1793 ;; Delete bundled software and binaries that were not explicitly
1795 (nftw "." delete-unwanted-files 'depth 'physical)
1797 ;; Assert that each preserved item is present to catch removals.
1798 (for-each (lambda (third-party)
1799 (unless (file-exists? third-party)
1800 (error (format #f "~s does not exist!~%" third-party))))
1803 ;; Use relative header locations instead of hard coded ones.
1805 "base/third_party/dynamic_annotations/dynamic_annotations.c"
1806 (("base/third_party/valgrind") "valgrind"))
1808 "third_party/breakpad/breakpad/src/common/linux/libcurl_wrapper.h"
1809 (("third_party/curl") "curl"))
1811 '("components/viz/common/gpu/vulkan_context_provider.h"
1812 "components/viz/common/resources/resource_format_utils.h"
1813 "gpu/config/gpu_util.cc")
1814 (("third_party/vulkan/include/")
1817 ;; Replace Google Analytics bundle with an empty file and hope
1819 (mkdir-p "third_party/analytics")
1820 (call-with-output-file
1821 "third_party/analytics/google-analytics-bundle.js"
1824 ;; Do not enable support for loading the Widevine DRM plugin.
1825 (substitute* "src/buildtools/config/common.pri"
1826 (("enable_widevine=true")
1827 "enable_widevine=false"))
1829 (build-system gnu-build-system)
1836 ("pkg-config" ,pkg-config)
1837 ("python-2" ,python-2)
1840 `(("alsa-lib" ,alsa-lib)
1842 ("cups-minimal" ,cups-minimal)
1846 ("fontconfig" ,fontconfig)
1847 ("harbuzz" ,harfbuzz)
1849 ("jsoncpp" ,jsoncpp)
1852 ("libevent" ,libevent)
1853 ("libgcrypt" ,libgcrypt)
1854 ("libjpeg" ,libjpeg-turbo)
1856 ("libwebp" ,libwebp)
1859 ("libxcomposite" ,libxcomposite)
1860 ("libxcursor" ,libxcursor)
1862 ("libxkbcommon" ,libxkbcommon)
1863 ;; FIXME: libxml2 needs to built with icu support though it links to
1864 ;; libxml2 configure summary still states "Checking for compatible
1865 ;; system libxml2... no"
1866 ("libxml2" ,libxml2)
1867 ("libxrandr" ,libxrandr)
1868 ("libxrender" ,libxrender)
1869 ("libxslt" ,libxslt)
1870 ("libxtst" ,libxtst)
1872 ("minizip" ,minizip)
1875 ("pciutils" ,pciutils)
1876 ("protobuf" ,protobuf)
1877 ("pulseaudio" ,pulseaudio)
1879 ("qtdeclarative" ,qtdeclarative)
1880 ("qtmultimedia" ,qtmultimedia)
1881 ("qtwebchannel" ,qtwebchannel)
1885 ("valgrind" ,valgrind)
1886 ("vulkan-headers" ,vulkan-headers)
1887 ("xcb-util" ,xcb-util)))
1889 (substitute-keyword-arguments (package-arguments qtsvg)
1891 `(modify-phases ,phases
1892 (add-after 'unpack 'fix-build-with-newer-re2
1894 ;; Adjust for API change in re2, taken from
1895 ;; https://chromium-review.googlesource.com/c/chromium/src/+/2145261
1896 (substitute* "src/3rdparty/chromium/components/autofill/core\
1897 /browser/address_rewriter.cc"
1898 (("options\\.set_utf8\\(true\\)")
1899 "options.set_encoding(RE2::Options::EncodingUTF8)"))
1901 (add-after 'unpack 'patch-ninja-version-check
1903 ;; The build system assumes the system Ninja is too old because
1904 ;; it only checks for versions 1.7 through 1.9. We have 1.10.
1905 (substitute* "configure.pri"
1906 (("1\\.\\[7-9\\]\\.\\*")
1907 "1.([7-9]|1[0-9]).*"))
1909 (add-before 'configure 'substitute-source
1910 (lambda* (#:key inputs outputs #:allow-other-keys)
1911 (let ((out (assoc-ref outputs "out"))
1912 (nss (assoc-ref inputs "nss"))
1913 (udev (assoc-ref inputs "udev")))
1914 ;; Qtwebengine is not installed into the same prefix as
1915 ;; qtbase. Some qtbase QTLibraryInfo constants will not
1916 ;; work. Replace with the full path to the qtwebengine
1917 ;; translations and locales in the store.
1918 (substitute* "src/core/web_engine_library_info.cpp"
1919 (("QLibraryInfo::location\\(QLibraryInfo::TranslationsPath\\)")
1920 (string-append "QLatin1String(\"" out "/share/qt5/translations\")"))
1921 (("QLibraryInfo::location\\(QLibraryInfo::DataPath\\)")
1922 (string-append "QLatin1String(\"" out "/share/qt5\")")))
1923 ;; Substitute full dynamic library path for nss.
1924 (substitute* "src/3rdparty/chromium/crypto/nss_util.cc"
1926 (string-append nss "/lib/nss/libnssckbi.so")))
1927 ;; Substitute full dynamic library path for udev.
1928 (substitute* "src/3rdparty/chromium/device/udev_linux/udev1_loader.cc"
1930 (string-append udev "/lib/libudev.so.1")))
1932 (add-before 'configure 'set-env
1934 ;; Avoids potential race conditions.
1935 (setenv "PYTHONDONTWRITEBYTECODE" "1")
1936 (setenv "NINJAFLAGS"
1937 (string-append "-k1" ;less verbose build output
1938 ;; Respect the '--cores' option of 'guix build'.
1939 " -j" (number->string (parallel-job-count))))
1943 ;; Valid QT_BUILD_PARTS variables are:
1944 ;; libs tools tests examples demos docs translations
1945 (invoke "qmake" "QT_BUILD_PARTS = libs tools" "--"
1946 "--webengine-printing-and-pdf=no"
1947 "--webengine-ffmpeg=system"
1948 "--webengine-icu=system"
1949 "--webengine-pepper-plugins=no")))))
1950 ;; Tests are disabled due to "Could not find QtWebEngineProcess error"
1951 ;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
1952 ;; before running tests.
1953 ((#:tests? _ #f) #f)))
1954 (native-search-paths
1955 (list (search-path-specification
1956 (file-type 'regular)
1958 (variable "QTWEBENGINEPROCESS_PATH")
1959 (files '("lib/qt5/libexec/QtWebEngineProcess")))))
1960 (home-page "https://wiki.qt.io/QtWebEngine")
1961 (synopsis "Qt WebEngine module")
1962 (description "The Qt5WebEngine module provides support for web applications
1963 using the Chromium browser project. The Chromium source code has Google services
1964 and binaries removed, and adds modular support for using system libraries.")
1965 (license license:lgpl2.1+)))
1967 (define-public python-sip
1974 (uri (string-append "https://www.riverbankcomputing.com/static/"
1975 "Downloads/sip/" version "/sip-" version ".tar.gz"))
1978 "0idywc326l8v1m3maprg1aq2gph67mmnnsskvlwfx8n19s16idz1"))))
1979 (build-system gnu-build-system)
1981 `(("python" ,python-wrapper)))
1983 `(#:tests? #f ; no check target
1984 #:imported-modules ((guix build python-build-system)
1985 ,@%gnu-build-system-modules)
1986 #:modules ((srfi srfi-1)
1987 ((guix build python-build-system) #:select (python-version))
1988 ,@%gnu-build-system-modules)
1990 (modify-phases %standard-phases
1992 (lambda* (#:key inputs outputs #:allow-other-keys)
1993 (let* ((out (assoc-ref outputs "out"))
1994 (bin (string-append out "/bin"))
1995 (include (string-append out "/include"))
1996 (python (assoc-ref inputs "python"))
1997 (lib (string-append out "/lib/python"
1998 (python-version python)
2000 (invoke "python" "configure.py"
2003 "--incdir" include)))))))
2004 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
2005 (synopsis "Python binding creator for C and C++ libraries")
2007 "SIP is a tool to create Python bindings for C and C++ libraries. It
2008 was originally developed to create PyQt, the Python bindings for the Qt
2009 toolkit, but can be used to create bindings for any C or C++ library.
2011 SIP comprises a code generator and a Python module. The code generator
2012 processes a set of specification files and generates C or C++ code, which
2013 is then compiled to create the bindings extension module. The SIP Python
2014 module provides support functions to the automatically generated code.")
2015 ;; There is a choice between a python like license, gpl2 and gpl3.
2016 ;; For compatibility with pyqt, we need gpl3.
2017 (license license:gpl3)))
2019 (define-public python2-sip
2020 (package (inherit python-sip)
2021 (name "python2-sip")
2023 `(("python" ,python-2)))))
2025 (define-public python-pyqt
2027 (name "python-pyqt")
2032 ;; PyPI is the canonical distribution point of PyQt. Older
2033 ;; releases are available from the web site.
2034 (uri (list (pypi-uri "PyQt5" version)
2035 (string-append "https://www.riverbankcomputing.com/static/"
2036 "Downloads/PyQt5/" version "/PyQt5-"
2037 version ".tar.gz")))
2038 (file-name (string-append "PyQt5-"version ".tar.gz"))
2041 "1c4y4qi1l540gd125ikj0al00k5pg65kmqaixcfbzslrsrphq8xx"))
2042 (patches (search-patches "pyqt-configure.patch"
2043 "pyqt-public-sip.patch"))))
2044 (build-system gnu-build-system)
2046 `(("qtbase" ,qtbase))) ; for qmake
2048 `(("python-sip" ,python-sip)))
2050 `(("python" ,python-wrapper)
2052 ("qtconnectivity" ,qtconnectivity)
2053 ("qtdeclarative" ,qtdeclarative)
2054 ("qtlocation" ,qtlocation)
2055 ("qtmultimedia" ,qtmultimedia)
2056 ("qtsensors" ,qtsensors)
2057 ("qtserialport" ,qtserialport)
2059 ("qttools" ,qttools)
2060 ("qtwebchannel" ,qtwebchannel)
2061 ("qtwebkit" ,qtwebkit)
2062 ("qtwebsockets" ,qtwebsockets)
2063 ("qtx11extras" ,qtx11extras)
2064 ("qtxmlpatterns" ,qtxmlpatterns)))
2066 `(#:modules ((srfi srfi-1)
2067 ((guix build python-build-system) #:select (python-version))
2068 ,@%gnu-build-system-modules)
2069 #:imported-modules ((guix build python-build-system)
2070 ,@%gnu-build-system-modules)
2072 (modify-phases %standard-phases
2073 ;; When building python-pyqtwebengine, <qprinter.h> can not be
2074 ;; included. Here we substitute the full path to the header in the
2076 (add-before 'configure 'substitute-source
2077 (lambda* (#:key inputs #:allow-other-keys)
2078 (let* ((qtbase (assoc-ref inputs "qtbase"))
2079 (qtprinter.h (string-append "\"" qtbase "/include/qt5/QtPrintSupport/qprinter.h\"")))
2080 (substitute* "sip/QtPrintSupport/qprinter.sip"
2085 (lambda* (#:key inputs outputs #:allow-other-keys)
2086 (let* ((out (assoc-ref outputs "out"))
2087 (bin (string-append out "/bin"))
2088 (sip (string-append out "/share/sip"))
2089 (plugins (string-append out "/lib/qt5/plugins"))
2090 (designer (string-append plugins "/designer"))
2091 (qml (string-append plugins "/PyQt5"))
2092 (python (assoc-ref inputs "python"))
2093 (lib (string-append out "/lib/python"
2094 (python-version python)
2096 (stubs (string-append lib "/PyQt5")))
2097 (invoke "python" "configure.py"
2101 "--designer-plugindir" designer
2102 "--qml-plugindir" qml
2103 ; Where to install the PEP 484 Type Hints stub
2104 ; files. Without this the stubs are tried to be
2105 ; installed into the python package's
2106 ; site-package directory, which is read-only.
2108 "--sipdir" sip)))))))
2109 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
2110 (synopsis "Python bindings for Qt")
2112 "PyQt is a set of Python v2 and v3 bindings for the Qt application
2113 framework. The bindings are implemented as a set of Python modules and
2114 contain over 620 classes.")
2115 (license license:gpl3)))
2117 (define-public python-pyqtwebengine
2119 (name "python-pyqtwebengine")
2124 ;; The newest releases are only available on PyPI. Older ones
2125 ;; are mirrored at the upstream home page.
2126 (uri (list (pypi-uri "PyQtWebEngine" version)
2127 (string-append "https://www.riverbankcomputing.com/static"
2128 "/Downloads/PyQtWebEngine/" version
2129 "/PyQtWebEngine-" version ".tar.gz")))
2132 "14hw49akb35n9pgiw564x8ykmsifihn9p2ax2x4zmywb3w2ra5g1"))))
2133 (build-system gnu-build-system)
2135 `(("python" ,python)
2136 ("python-sip" ,python-sip)
2137 ;; qtbase is required for qmake
2138 ("qtbase" ,qtbase)))
2140 `(("python" ,python-wrapper)
2141 ("python-sip" ,python-sip)
2142 ("python-pyqt" ,python-pyqt)
2145 ("qtdeclarative" ,qtdeclarative)
2146 ("qtwebchannel" ,qtwebchannel)
2147 ("qtwebengine" ,qtwebengine)))
2149 `(#:modules ((srfi srfi-1)
2150 ((guix build python-build-system) #:select (python-version))
2151 ,@%gnu-build-system-modules)
2152 #:imported-modules ((guix build python-build-system)
2153 ,@%gnu-build-system-modules)
2155 (modify-phases %standard-phases
2157 (lambda* (#:key inputs outputs #:allow-other-keys)
2158 (let* ((out (assoc-ref outputs "out"))
2159 (sipdir (string-append out "/share/sip"))
2160 (pyqt-sipdir (string-append
2161 (assoc-ref inputs "python-pyqt") "/share/sip"))
2162 (python (assoc-ref inputs "python"))
2163 (lib (string-append out "/lib/python"
2164 (python-version python)
2165 "/site-packages/PyQt5"))
2166 (stubs (string-append lib "/PyQt5")))
2169 (invoke "python" "configure.py"
2176 "--pyqt-sipdir" pyqt-sipdir))))
2177 ;; Because this has a different prefix than python-pyqt then we need
2178 ;; to make this a namespace of it's own
2179 (add-after 'install 'make-namespace
2180 (lambda* (#:key inputs outputs #:allow-other-keys)
2181 (let* ((__init__.py (string-append
2182 (assoc-ref outputs "out")
2184 (python-version (assoc-ref inputs "python"))
2185 "/site-packages/PyQt5/__init__.py")))
2186 (with-output-to-file __init__.py
2187 (lambda _ (display "
2188 from pkgutil import extend_path
2189 __path__ = extend_path(__path__, __name__)
2192 (home-page "https://www.riverbankcomputing.com/software/pyqtwebengine/intro")
2193 (synopsis "Python bindings for QtWebEngine")
2195 "PyQtWebEngine is a set of Python bindings for The Qt Company's Qt
2196 WebEngine libraries. The bindings sit on top of PyQt5 and are implemented as a
2197 set of three modules. Prior to v5.12 these bindings were part of PyQt
2199 (license license:gpl3)))
2201 ;; XXX: This is useful because qtwebkit does not build reliably at this time.
2202 ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-*
2203 ;; packages that could be used together.
2204 (define-public python-pyqt-without-qtwebkit
2205 (package (inherit python-pyqt)
2206 (name "python-pyqt-without-qtwebkit")
2208 (alist-delete "qtwebkit" (package-inputs python-pyqt)))))
2210 (define-public python2-pyqt
2211 (package (inherit python-pyqt)
2212 (name "python2-pyqt")
2214 `(("python-enum34" ,python2-enum34)
2215 ("python-sip" ,python2-sip)))
2217 `(("python-sip" ,python2-sip)
2218 ("qtbase" ,qtbase)))
2220 `(("python" ,python-2)
2221 ("python2-enum34" ,python2-enum34)
2222 ,@(alist-delete "python" (package-inputs python-pyqt))))))
2224 (define-public python2-pyqtwebengine
2226 python-pyqtwebengine
2227 (name "python2-pyqtwebengine")
2229 `(("python" ,python-2)
2230 ("python-sip" ,python2-sip)
2231 ;; qtbase is required for qmake
2232 ("qtbase" ,qtbase)))
2234 `(("python" ,python-2)
2235 ("python-sip" ,python2-sip)
2236 ("python-pyqt" ,python2-pyqt)
2239 ("qtdeclarative" ,qtdeclarative)
2240 ("qtwebchannel" ,qtwebchannel)
2241 ("qtwebengine" ,qtwebengine)))))
2243 (define-public python2-pyqt-4
2244 (package (inherit python-pyqt)
2245 (name "python2-pyqt")
2251 (string-append "mirror://sourceforge/pyqt/PyQt4/"
2252 "PyQt-" version "/PyQt4_gpl_x11-"
2256 "1nw8r88a5g2d550yvklawlvns8gd5slw53yy688kxnsa65aln79w"))))
2258 `(("python-sip" ,python2-sip)
2260 (inputs `(("python" ,python-2)))
2262 `(#:tests? #f ; no check target
2263 #:modules ((srfi srfi-1)
2264 ,@%gnu-build-system-modules)
2266 (modify-phases %standard-phases
2268 (lambda* (#:key inputs outputs #:allow-other-keys)
2269 (let* ((out (assoc-ref outputs "out"))
2270 (bin (string-append out "/bin"))
2271 (sip (string-append out "/share/sip"))
2272 (python (assoc-ref inputs "python"))
2274 (last (string-split python #\-)))
2277 (take (string-split python-version #\.) 2)
2279 (lib (string-append out "/lib/python"
2282 (invoke "python" "configure.py"
2286 "--sipdir" sip)))))))
2287 (license (list license:gpl2 license:gpl3)))) ; choice of either license
2289 (define-public qscintilla
2295 (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/"
2296 "QScintilla-" version "/QScintilla_gpl-"
2300 "1swjr786w04r514pry9pn32ivza4il1cg35s60qy39cwc175pka6"))))
2301 (build-system gnu-build-system)
2304 (modify-phases %standard-phases
2306 (lambda* (#:key outputs #:allow-other-keys)
2307 (let ((out (assoc-ref outputs "out")))
2309 (substitute* "qscintilla.pro"
2310 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
2311 (string-append out "/lib"))
2312 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
2313 (string-append out "/include"))
2314 (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]")
2315 (string-append out "/translations"))
2316 (("\\$\\$\\[QT_INSTALL_DATA\\]")
2317 (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))
2318 (("\\$\\$\\[QT_HOST_DATA\\]")
2319 (string-append out "/lib/qt$${QT_MAJOR_VERSION}")))
2320 (invoke "qmake")))))))
2321 (native-inputs `(("qtbase" ,qtbase)))
2322 (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro")
2323 (synopsis "Qt port of the Scintilla C++ editor control")
2324 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2325 editor control. QScintilla includes features especially useful when editing
2326 and debugging source code. These include support for syntax styling, error
2327 indicators, code completion and call tips.")
2328 (license license:gpl3+)))
2330 (define-public python-qscintilla
2331 (package (inherit qscintilla)
2332 (name "python-qscintilla")
2335 (list "--pyqt=PyQt5"
2336 (string-append "--pyqt-sipdir="
2337 (assoc-ref %build-inputs "python-pyqt")
2339 (string-append "--qsci-incdir="
2340 (assoc-ref %build-inputs "qscintilla")
2342 (string-append "--qsci-libdir="
2343 (assoc-ref %build-inputs "qscintilla")
2346 (modify-phases %standard-phases
2348 (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
2349 (let ((out (assoc-ref outputs "out"))
2350 (python (assoc-ref inputs "python")))
2352 (apply invoke "python3" "configure.py"
2354 ;; Install to the right directory
2355 (substitute* '("Makefile"
2357 (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") out)
2358 (((string-append python "/lib"))
2359 (string-append out "/lib")))
2360 ;; And fix the installed.txt file
2361 (substitute* "installed.txt"
2362 (("/gnu/store/[^/]+") out)))
2365 `(("qscintilla" ,qscintilla)
2367 ("python-pyqt" ,python-pyqt)))
2368 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2369 editor control. QScintilla includes features especially useful when editing
2370 and debugging source code. These include support for syntax styling, error
2371 indicators, code completion and call tips.
2373 This package provides the Python bindings.")))
2375 ;; PyQt only looks for modules in its own directory. It ignores environment
2376 ;; variables such as PYTHONPATH, so we need to build a union package to make
2378 (define-public python-pyqt+qscintilla
2379 (package (inherit python-pyqt)
2380 (name "python-pyqt+qscintilla")
2382 (build-system trivial-build-system)
2384 '(#:modules ((guix build union))
2386 (use-modules (ice-9 match)
2388 (match %build-inputs
2389 (((names . directories) ...)
2390 (union-build (assoc-ref %outputs "out")
2394 `(("python-pyqt" ,python-pyqt)
2395 ("python-qscintilla" ,python-qscintilla)))
2396 (synopsis "Union of PyQt and the Qscintilla extension")
2398 "This package contains the union of PyQt and the Qscintilla extension.")))
2400 (define-public qtkeychain
2408 (url "https://github.com/frankosterfeld/qtkeychain/")
2409 (commit (string-append "v" version))))
2410 (file-name (git-file-name name version))
2413 "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc"))))
2414 (build-system cmake-build-system)
2416 `(("pkg-config" ,pkg-config)
2417 ("qttools" ,qttools)))
2419 `(("qtbase" ,qtbase)))
2421 `(#:tests? #f ; No tests included
2423 (modify-phases %standard-phases
2424 (add-before 'configure 'set-qt-trans-dir
2426 (substitute* "CMakeLists.txt"
2427 (("\\$\\{qt_translations_dir\\}")
2428 "${CMAKE_INSTALL_PREFIX}/share/qt5/translations"))
2430 (home-page "https://github.com/frankosterfeld/qtkeychain")
2431 (synopsis "Qt API to store passwords")
2433 "QtKeychain is a Qt library to store passwords and other secret data
2434 securely. It will not store any data unencrypted unless explicitly requested.")
2435 (license license:bsd-3)))
2445 (string-append "mirror://sourceforge/qwt/qwt/"
2446 version "/qwt-" version ".tar.bz2"))
2448 (base32 "0hf0mpca248xlqn7xnzkfj8drf19gdyg5syzklvq8pibxiixwxj0"))))
2449 (build-system gnu-build-system)
2451 `(("qtbase" ,qtbase)
2453 ("qttools" ,qttools)))
2456 (modify-phases %standard-phases
2458 (lambda* (#:key outputs #:allow-other-keys)
2459 (let* ((out (assoc-ref outputs "out"))
2460 (docdir (string-append out "/share/doc/qwt"))
2461 (incdir (string-append out "/include/qwt"))
2462 (pluginsdir (string-append out "/lib/qt5/plugins/designer"))
2463 (featuresdir (string-append out "/lib/qt5/mkspecs/features")))
2464 (substitute* '("qwtconfig.pri")
2465 (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x)
2466 (format #f "~a = ~a\n" x out))
2467 (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x)
2468 (format #f "~a = ~a\n" x docdir))
2469 (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x)
2470 (format #f "~a = ~a\n" x incdir))
2471 (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x)
2472 (format #f "~a = ~a\n" x pluginsdir))
2473 (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x)
2474 (format #f "~a = ~a\n" x featuresdir)))
2475 (substitute* '("doc/doc.pro")
2476 ;; We'll install them in the 'install-man-pages' phase.
2477 (("^unix:doc\\.files.*") ""))
2479 (add-after 'install 'install-man-pages
2480 (lambda* (#:key outputs #:allow-other-keys)
2481 (let* ((out (assoc-ref outputs "out"))
2482 (man (string-append out "/share/man")))
2483 ;; Remove some incomplete manual pages.
2484 (for-each delete-file (find-files "doc/man/man3" "^_tmp.*"))
2486 (copy-recursively "doc/man" man)
2488 (home-page "http://qwt.sourceforge.net")
2489 (synopsis "Qt widgets for plots, scales, dials and other technical software
2492 "The Qwt library contains widgets and components which are primarily useful
2493 for technical and scientific purposes. It includes a 2-D plotting widget,
2494 different kinds of sliders, and much more.")
2497 ;; The Qwt license is LGPL2.1 with some exceptions.
2498 (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html")
2499 ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either).
2500 license:lgpl2.1 license:gpl3))))
2502 (define-public qtwebkit
2505 (version "5.212.0-alpha4")
2509 (uri (string-append "https://github.com/annulen/webkit/releases/download/"
2510 "qtwebkit-" version "/qtwebkit-" version ".tar.xz"))
2513 "1rm9sjkabxna67dl7myx9d9vpdyfxfdhrk9w7b94srkkjbd2d8cw"))
2514 (patches (search-patches "qtwebkit-pbutils-include.patch"))))
2515 (build-system cmake-build-system)
2523 ("pkg-config" ,pkg-config)))
2527 ("gst-plugins-base" ,gst-plugins-base)
2528 ("libjpeg" ,libjpeg-turbo)
2530 ("libwebp" ,libwebp)
2532 ("fontconfig" ,fontconfig)
2533 ("libxrender" ,libxrender)
2535 ("qtdeclarative" ,qtdeclarative)
2536 ("qtlocation" ,qtlocation)
2537 ("qtmultimedia" ,qtmultimedia)
2538 ("qtsensors" ,qtsensors)
2539 ("qtwebchannel" ,qtwebchannel)
2540 ("libxml2" ,libxml2)
2541 ("libxslt" ,libxslt)
2543 ("libxcomposite" ,libxcomposite)))
2545 `(#:tests? #f ; no apparent tests; it might be necessary to set
2546 ; ENABLE_API_TESTS, see CMakeLists.txt
2548 ;; Parallel builds fail due to a race condition:
2549 ;; <https://bugs.gnu.org/34062>.
2550 #:parallel-build? #f
2552 #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE"
2554 "-DUSE_LIBHYPHEN=OFF"
2555 "-DUSE_SYSTEM_MALLOC=ON"
2556 ;; XXX: relative dir installs to build dir?
2557 (string-append "-DECM_MKSPECS_INSTALL_DIR="
2558 %output "/lib/qt5/mkspecs/modules")
2559 ;; Sacrifice a little speed in order to link
2560 ;; libraries and test executables in a
2561 ;; reasonable amount of memory.
2562 "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
2563 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
2564 (home-page "https://www.webkit.org")
2565 (synopsis "Web browser engine and classes to render and interact with web
2567 (description "QtWebKit provides a Web browser engine that makes it easy to
2568 embed content from the World Wide Web into your Qt application. At the same
2569 time Web content can be enhanced with native controls.")
2570 ;; Building QtWebKit takes around 13 hours on an AArch64 machine. Give some
2571 ;; room for slower or busy hardware.
2572 (properties '((timeout . 64800))) ;18 hours
2574 ;; XXX: This consumes too much RAM to successfully build on AArch64 (e.g.,
2575 ;; SoftIron OverDrive with 8 GiB of RAM), so instead of wasting resources,
2576 ;; disable it on non-Intel platforms.
2577 (supported-systems '("x86_64-linux" "i686-linux"))
2579 (license license:lgpl2.1+)))
2581 (define-public dotherside
2589 (url "https://github.com/filcuc/DOtherSide")
2590 (commit (string-append "v" version))))
2591 (file-name (git-file-name name version))
2594 "09fz6v8rp28997f235yaifj8p4vvsyv45knc1iivgdvx7msgcd0m"))))
2595 (build-system cmake-build-system)
2597 `(("qttools" ,qttools)))
2599 `(("qtbase" ,qtbase)
2600 ("qtdeclarative" ,qtdeclarative)))
2601 (home-page "https://filcuc.github.io/DOtherSide/index.html")
2602 (synopsis "C language library for creating bindings for the Qt QML language")
2604 "DOtherSide is a C language library for creating bindings for the
2605 QT QML language. The following features are implementable from
2608 @item Creating custom QObject
2609 @item Creating custom QAbstractListModels
2610 @item Creating custom properties, signals and slots
2611 @item Creating from QML QObject defined in the binded language
2612 @item Creating from Singleton QML QObject defined in the binded language
2614 (license license:lgpl3))) ;version 3 only (+ exception)
2616 ;; There have been no public releases yet.
2617 (define-public qtcolorwidgets
2618 (let ((commit "a95f72e935fe9e046061a1d1c3930cbfbcb533e0")
2621 (name "qtcolorwidgets")
2622 (version (git-version "0" revision commit))
2626 (url "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2628 (file-name (git-file-name name version))
2631 "0dkiwlqh2gwhlp78c1fmchj3shl4p9inspcl96ya5aa8mn6kydy8"))))
2632 (build-system cmake-build-system)
2633 (arguments `(#:tests? #f)) ; There are no tests
2635 `(("qttools" ,qttools)))
2637 `(("qtbase" ,qtbase)))
2638 (home-page "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2639 (synopsis "Color management widgets")
2640 (description "QtColorWidgets provides a Qt color dialog that is more
2641 user-friendly than the default @code{QColorDialog} and several other
2642 color-related widgets.")
2643 ;; Includes a license exception for combining with GPL2 code.
2644 (license license:lgpl3+))))
2646 (define-public python-shiboken-2
2648 (name "python-shiboken-2")
2649 (version "5.14.2.3")
2652 (uri (string-append "https://download.qt.io/official_releases"
2653 "/QtForPython/pyside2/PySide2-" version
2654 "-src/pyside-setup-opensource-src-"
2658 "08lhqm0n3fjqpblcx9rshsp8g3bvf7yzbai5q99bly2wa04y6b83"))))
2659 (build-system cmake-build-system)
2661 `(("clang-toolchain" ,clang-toolchain)
2662 ("libxml2" ,libxml2)
2663 ("libxslt" ,libxslt)
2664 ("python-wrapper" ,python-wrapper)
2666 ("qtxmlpatterns" ,qtxmlpatterns)))
2669 ;; FIXME: Building tests fails
2670 #:configure-flags '("-DBUILD_TESTS=off")
2672 (modify-phases %standard-phases
2673 (add-after 'unpack 'use-shiboken-dir-only
2674 (lambda _ (chdir "sources/shiboken2") #t))
2675 (add-before 'configure 'make-files-writable-and-update-timestamps
2677 ;; The build scripts need to modify some files in
2678 ;; the read-only source directory, and also attempts
2679 ;; to create Zip files which fails because the Zip
2680 ;; format does not support timestamps before 1980.
2681 (let ((circa-1980 (* 10 366 24 60 60)))
2682 (for-each (lambda (file)
2683 (make-file-writable file)
2684 (utime file circa-1980 circa-1980))
2687 (add-before 'configure 'set-build-env
2688 (lambda* (#:key inputs #:allow-other-keys)
2689 (let ((llvm (assoc-ref inputs "clang-toolchain")))
2690 (setenv "CLANG_INSTALL_DIR" llvm)
2692 (home-page "https://wiki.qt.io/Qt_for_Python")
2694 "Shiboken generates bindings for C++ libraries using CPython source code")
2696 "Shiboken generates bindings for C++ libraries using CPython source code")
2699 ;; The main code is GPL3 or LGPL3.
2700 ;; Examples are BSD-3.
2705 (define-public python-pyside-2
2707 (name "python-pyside-2")
2708 (version (package-version python-shiboken-2))
2709 (source (package-source python-shiboken-2))
2710 (build-system cmake-build-system)
2712 `(("libxml2" ,libxml2)
2713 ("libxslt" ,libxslt)
2714 ("clang-toolchain" ,clang-toolchain)
2716 ("qtdatavis3d" ,qtdatavis3d)
2717 ("qtlocation" ,qtlocation)
2718 ("qtmultimedia" ,qtmultimedia)
2719 ("qtquickcontrols" ,qtquickcontrols)
2720 ("qtscript" ,qtscript)
2721 ("qtscxml" ,qtscxml)
2722 ("qtsensors" ,qtsensors)
2723 ("qtspeech" ,qtspeech)
2725 ("qtwebchannel" ,qtwebchannel)
2726 ("qtwebsockets" ,qtwebsockets)
2727 ("qtx11extras" ,qtx11extras)
2728 ("qtxmlpatterns" ,qtxmlpatterns)))
2730 `(("cmake" ,cmake-minimal)
2731 ("python-shiboken-2" ,python-shiboken-2)
2732 ("python" ,python-wrapper)
2733 ("qttools" ,qttools)
2737 ;; FIXME: Building tests fail.
2739 (list "-DBUILD_TESTS=FALSE"
2740 (string-append "-DPYTHON_EXECUTABLE="
2741 (assoc-ref %build-inputs "python")
2744 (modify-phases %standard-phases
2745 (add-after 'unpack 'go-to-source-dir
2746 (lambda _ (chdir "sources/pyside2") #t))
2747 (add-before 'configure 'set-clang-dir
2748 (lambda* (#:key inputs #:allow-other-keys)
2749 (let ((clang (assoc-ref inputs "clang-toolchain")))
2750 (setenv "CLANG_INSTALL_DIR" clang)
2752 (home-page "https://wiki.qt.io/Qt_for_Python")
2754 "The Qt for Python product enables the use of Qt5 APIs in Python applications")
2756 "The Qt for Python product enables the use of Qt5 APIs in Python
2757 applications. It lets Python developers utilize the full potential of Qt,
2758 using the PySide2 module. The PySide2 module provides access to the
2759 individual Qt modules such as QtCore, QtGui,and so on. Qt for Python also
2760 comes with the Shiboken2 CPython binding code generator, which can be used to
2761 generate Python bindings for your C or C++ code.")
2765 ;; this file may be used under the terms of the GNU General
2766 ;; Public License version 2.0 or (at your option) the GNU
2767 ;; General Public license version 3 or any later version
2768 ;; approved by the KDE Free Qt Foundation.
2769 ;; Thus, it is currently v2 or v3, but no "+".
2773 (define-public python-pyside-2-tools
2775 (name "python-pyside-2-tools")
2776 (version (package-version python-shiboken-2))
2777 (source (package-source python-shiboken-2))
2778 (build-system cmake-build-system)
2780 `(("python-pyside-2" ,python-pyside-2)
2781 ("python-shiboken-2" ,python-shiboken-2)
2782 ("qtbase" ,qtbase/next)))
2784 `(("python" ,python-wrapper)))
2788 (list "-DBUILD_TESTS=off"
2789 (string-append "-DPYTHON_EXECUTABLE="
2790 (assoc-ref %build-inputs "python")
2792 #:phases (modify-phases %standard-phases
2793 (add-after 'unpack 'go-to-source-dir
2794 (lambda _ (chdir "sources/pyside2-tools") #t)))))
2795 (home-page "https://wiki.qt.io/Qt_for_Python")
2797 "Contains command line tools for PySide2")
2799 "Contains lupdate, rcc and uic tools for PySide2")
2800 (license license:gpl2)))
2802 (define-public libqglviewer
2804 (name "libqglviewer")
2809 (string-append "http://libqglviewer.com/src/libQGLViewer-"
2813 "023w7da1fyn2z69nbkp2rndiv886zahmc5cmira79zswxjfpklp2"))))
2814 (build-system gnu-build-system)
2816 '(#:tests? #f ; no check target
2818 (list (string-append "PREFIX="
2819 (assoc-ref %outputs "out")))
2821 (modify-phases %standard-phases
2823 (lambda* (#:key make-flags #:allow-other-keys)
2824 (apply invoke (cons "qmake" make-flags)))))))
2826 `(("qtbase" ,qtbase)
2827 ("qttools" ,qttools)))
2830 (home-page "http://libqglviewer.com")
2831 (synopsis "Qt-based C++ library for the creation of OpenGL 3D viewers")
2833 "@code{libQGLViewer} is a C++ library based on Qt that eases the creation
2834 of OpenGL 3D viewers.
2836 It provides some of the typical 3D viewer functionalities, such as the
2837 possibility to move the camera using the mouse, which lacks in most of the
2838 other APIs. Other features include mouse manipulated frames, interpolated
2839 keyFrames, object selection, stereo display, screenshot saving and much more.
2840 It can be used by OpenGL beginners as well as to create complex applications,
2841 being fully customizable and easy to extend.")
2842 ;; According to LICENSE, either version 2 or version 3 of the GNU GPL may
2844 (license (list license:gpl2 license:gpl3))))