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-dev" ,mariadb "dev")
200 ("postgresql" ,postgresql)
201 ("pulseaudio" ,pulseaudio)
205 ("unixodbc" ,unixodbc)
207 ("xcb-util" ,xcb-util)
208 ("xcb-util-image" ,xcb-util-image)
209 ("xcb-util-keysyms" ,xcb-util-keysyms)
210 ("xcb-util-renderutil" ,xcb-util-renderutil)
211 ("xcb-util-wm" ,xcb-util-wm)
213 ("libjpeg" ,libjpeg-turbo)
215 ("openssl" ,openssl-1.0)))
217 `(;; XXX: The JavaScriptCore engine does not build with the C++11 standard.
218 ;; We could build it with -std=gnu++98, but then we'll get in trouble with
219 ;; ICU later. Just keep using GCC 5 for now.
225 ("pkg-config" ,pkg-config)
228 ("which" ,(@ (gnu packages base) which))))
229 ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
230 ;; but we can't make them a separate output because "out" and "examples"
231 ;; would refer to each other.
232 (outputs '("out" ;112MiB core + 37MiB examples
233 "doc")) ;280MiB of HTML + code
236 (modify-phases %standard-phases
237 (add-after 'set-paths 'hide-default-gcc
238 (lambda* (#:key inputs #:allow-other-keys)
239 (let ((gcc (assoc-ref inputs "gcc")))
240 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
241 ;; conflicts with the GCC 5 input.
242 (setenv "CPLUS_INCLUDE_PATH"
244 (delete (string-append gcc "/include/c++")
245 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
250 (lambda* (#:key outputs #:allow-other-keys)
251 (let ((out (assoc-ref outputs "out"))
252 (doc (assoc-ref outputs "doc")))
253 (substitute* '("configure")
254 (("/bin/pwd") (which "pwd")))
255 (substitute* "src/corelib/global/global.pri"
256 (("/bin/ls") (which "ls")))
262 "-nomake" "examples demos"
263 ;; Note: Don't pass '-docdir' since 'qmake' and
264 ;; libQtCore would record its value, thereby defeating
265 ;; the whole point of having a separate output.
266 "-datadir" (string-append out "/share/qt-" ,version
268 "-importdir" (string-append out "/lib/qt-4"
270 "-plugindir" (string-append out "/lib/qt-4"
272 "-translationdir" (string-append out "/share/qt-" ,version
274 "-demosdir" (string-append out "/share/qt-" ,version
276 "-examplesdir" (string-append out "/share/qt-" ,version
280 ;; explicitly link with dbus instead of dlopening it
282 ;; Skip the webkit module; it fails to build on armhf
283 ;; and, apart from that, may pose security risks.
285 ;; don't use the precompiled headers
287 ;; drop special machine instructions not supported
288 ;; on all instances of the target
289 ,@(if (string-prefix? "x86_64"
290 (or (%current-target-system)
304 (lambda* (#:key outputs #:allow-other-keys)
305 ;; Because of qt4-documentation-path.patch, documentation ends up
306 ;; being installed in OUT. Move it to the right place.
307 (let* ((out (assoc-ref outputs "out"))
308 (doc (assoc-ref outputs "doc"))
309 (olddoc (string-append out "/doc"))
310 (docdir (string-append doc "/share/doc/qt-" ,version)))
311 (mkdir-p (dirname docdir))
313 ;; Note: We can't use 'rename-file' here because OUT and DOC are
314 ;; different "devices" due to bind-mounts.
315 (copy-recursively olddoc docdir)
316 (delete-file-recursively olddoc)
319 (list (search-path-specification
320 (variable "QMAKEPATH")
321 (files '("lib/qt5")))
322 (search-path-specification
323 (variable "QML2_IMPORT_PATH")
324 (files '("lib/qt5/qml")))
325 (search-path-specification
326 (variable "QT_PLUGIN_PATH")
327 (files '("lib/qt5/plugins")))
328 (search-path-specification
329 (variable "XDG_DATA_DIRS")
331 (search-path-specification
332 (variable "XDG_CONFIG_DIRS")
333 (files '("etc/xdg")))))
334 (home-page "https://www.qt.io/")
335 (synopsis "Cross-platform GUI library")
336 (description "Qt is a cross-platform application and UI framework for
337 developers using C++ or QML, a CSS & JavaScript like language.")
338 (license (list license:lgpl2.1 license:lgpl3))
340 ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
341 ;; see <http://hydra.gnu.org/build/112828>.
342 ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
343 (supported-systems (delete "mips64el-linux" %supported-systems))))
345 (define-public qtbase
351 (uri (string-append "https://download.qt.io/official_releases/qt/"
352 (version-major+minor version) "/" version
353 "/submodules/" name "-everywhere-src-"
357 "12mjsahlma9rw3vz9a6b5h2s6ylg8b34hxc2vnlna5ll429fgfa8"))
358 ;; Use TZDIR to avoid depending on package "tzdata".
359 (patches (search-patches "qtbase-use-TZDIR.patch"
360 "qtbase-moc-ignore-gcc-macro.patch"
361 "qtbase-absolute-runpath.patch"
362 "qtbase-fix-krita-deadlock.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)
374 (outputs '("out" "debug"))
377 ;; Use which the package, not the function
378 ("which" ,(@ (gnu packages base) which))))
380 `(("alsa-lib" ,alsa-lib)
383 ("double-conversion" ,double-conversion)
386 ("fontconfig" ,fontconfig)
387 ("freetype" ,freetype)
389 ("harfbuzz" ,harfbuzz)
391 ("libinput" ,libinput-minimal)
392 ("libjpeg" ,libjpeg-turbo)
396 ("libxcomposite" ,libxcomposite)
397 ("libxcursor" ,libxcursor)
398 ("libxfixes" ,libxfixes)
400 ("libxinerama" ,libxinerama)
401 ("libxkbcommon" ,libxkbcommon)
403 ("libxrandr" ,libxrandr)
404 ("libxrender" ,libxrender)
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 ;; Later stripped into the :debug output.
483 ;; These features require higher versions of Linux than the
484 ;; minimum version of the glibc. See
485 ;; src/corelib/global/minimum-linux_p.h. By disabling these
486 ;; features Qt5 applications can be used on the oldest
487 ;; kernels that the glibc supports, including the RHEL6
488 ;; (2.6.32) and RHEL7 (3.10) kernels.
489 "-no-feature-getentropy" ; requires Linux 3.17
490 "-no-feature-renameat2" ; requires Linux 3.16
492 ;; Do not build examples; if desired, these could go
493 ;; into a separate output, but for the time being, we
494 ;; prefer to save the space and build time.
495 "-no-compile-examples"
496 ;; Most "-system-..." are automatic, but some use
497 ;; the bundled copy by default.
501 ;; explicitly link with openssl instead of dlopening it
503 ;; explicitly link with dbus instead of dlopening it
505 ;; don't use the precompiled headers
507 ;; drop special machine instructions that do not have
509 ,@(if (string-prefix? "x86_64"
510 (or (%current-target-system)
516 (add-after 'install 'patch-mkspecs
517 (lambda* (#:key outputs #:allow-other-keys)
518 (let* ((out (assoc-ref outputs "out"))
519 (archdata (string-append out "/lib/qt5"))
520 (mkspecs (string-append archdata "/mkspecs"))
521 (qt_config.prf (string-append
522 mkspecs "/features/qt_config.prf")))
523 ;; For each Qt module, let `qmake' uses search paths in the
524 ;; module directory instead of all in QT_INSTALL_PREFIX.
525 (substitute* qt_config.prf
526 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
527 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
528 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
529 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
530 (("\\$\\$\\[QT_HOST_LIBS\\]")
531 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
532 (("\\$\\$\\[QT_INSTALL_BINS\\]")
533 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
535 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
536 (substitute* (string-append mkspecs "/features/qt_functions.prf")
537 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
538 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
540 ;; Resolve qmake spec files within qtbase by absolute paths.
543 (string-append mkspecs "/features/" file))
544 '("device_config.prf" "moc.prf" "qt_build_config.prf"
545 "qt_config.prf" "winrt/package_manifest.prf"))
546 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
547 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
549 (add-after 'patch-mkspecs 'patch-prl-files
550 (lambda* (#:key outputs #:allow-other-keys)
551 (let ((out (assoc-ref outputs "out")))
552 ;; Insert absolute references to the qtbase libraries because
553 ;; QT_INSTALL_LIBS does not always resolve correctly, depending
554 ;; on context. See <https://bugs.gnu.org/38405>
555 (substitute* (find-files (string-append out "/lib") "\\.prl$")
556 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
557 (string-append out "/lib")))
559 (add-after 'unpack 'patch-paths
560 ;; Use the absolute paths for dynamically loaded libs, otherwise
561 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
563 (lambda* (#:key inputs #:allow-other-keys)
565 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
566 "cross-libc" "libc"))))
567 (substitute* '("src/network/kernel/qdnslookup_unix.cpp"
568 "src/network/kernel/qhostinfo_unix.cpp")
569 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
570 (string-append a glibc "/lib/lib" b))))
572 (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
573 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
574 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
576 (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp"
577 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
578 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
579 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
580 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
583 (list (search-path-specification
584 (variable "QMAKEPATH")
585 (files '("lib/qt5")))
586 (search-path-specification
587 (variable "QML2_IMPORT_PATH")
588 (files '("lib/qt5/qml")))
589 (search-path-specification
590 (variable "QT_PLUGIN_PATH")
591 (files '("lib/qt5/plugins")))
592 (search-path-specification
593 (variable "XDG_DATA_DIRS")
595 (search-path-specification
596 (variable "XDG_CONFIG_DIRS")
597 (files '("etc/xdg")))))
598 (home-page "https://www.qt.io/")
599 (synopsis "Cross-platform GUI library")
600 (description "Qt is a cross-platform application and UI framework for
601 developers using C++ or QML, a CSS & JavaScript like language.")
602 (license (list license:lgpl2.1 license:lgpl3))))
604 ;; qt used to refer to the monolithic Qt 5.x package
605 (define-deprecated qt qtbase)
608 (package (inherit qtbase)
613 (uri (string-append "https://download.qt.io/official_releases/qt/"
614 (version-major+minor version) "/" version
615 "/submodules/" name "-everywhere-src-"
619 "18dmfc8s428fzbk7k5vl3212b25455ayrz7s716nwyiy3ahgmmy7"))))
620 (propagated-inputs `())
621 (native-inputs `(("perl" ,perl)))
628 (modify-phases %standard-phases
629 (add-before 'configure 'configure-qmake
630 (lambda* (#:key inputs outputs #:allow-other-keys)
631 (let* ((out (assoc-ref outputs "out"))
632 (qtbase (assoc-ref inputs "qtbase"))
633 (tmpdir (string-append (getenv "TMPDIR")))
634 (qmake (string-append tmpdir "/qmake"))
635 (qt.conf (string-append tmpdir "/qt.conf")))
636 ;; Use qmake with a customized qt.conf to override install
638 (symlink (which "qmake") qmake)
639 (setenv "PATH" (string-append tmpdir ":" (getenv "PATH")))
640 (with-output-to-file qt.conf
646 Documentation=share/doc/qt5
649 LibraryExecutables=lib/qt5/libexec
652 Plugins=lib/qt5/plugins
653 Imports=lib/qt5/imports
654 Qml2Imports=lib/qt5/qml
655 Translations=share/qt5/translations
657 Examples=share/doc/qt5/examples
663 [EffectiveSourcePaths]
669 (lambda* (#:key inputs outputs #:allow-other-keys)
670 ;; Valid QT_BUILD_PARTS variables are:
671 ;; libs tools tests examples demos docs translations
672 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests")))
673 (add-before 'check 'set-display
675 ;; make Qt render "offscreen", required for tests
676 (setenv "QT_QPA_PLATFORM" "offscreen")
678 (synopsis "Qt module for displaying SVGs")
679 (description "The QtSvg module provides classes for displaying the
680 contents of SVG files.")))
682 (define-public qtimageformats
683 (package (inherit qtsvg)
684 (name "qtimageformats")
688 (uri (string-append "https://download.qt.io/official_releases/qt/"
689 (version-major+minor version) "/" version
690 "/submodules/" name "-everywhere-src-"
694 "132g4rlm61pdcpcrclr1rwpbrxn7va4wjfb021mh8pn1cl0wlgkk"))
695 (modules '((guix build utils)))
698 (delete-file-recursively "src/3rdparty")
701 (substitute-keyword-arguments (package-arguments qtsvg)
703 `(modify-phases ,phases
704 (add-after 'unpack 'fix-build
706 (substitute* "src/plugins/imageformats/jp2/qjp2handler.cpp"
707 (("^#include <jasper/jasper.h>")
708 "#include <jasper/jasper.h>\n#include <QtCore/qmath.h>"))
719 (synopsis "Additional Image Format plugins for Qt")
720 (description "The QtImageFormats module contains plugins for adding
721 support for MNG, TGA, TIFF and WBMP image formats.")))
723 (define-public qtx11extras
724 (package (inherit qtsvg)
729 (uri (string-append "https://download.qt.io/official_releases/qt/"
730 (version-major+minor version) "/" version
731 "/submodules/" name "-everywhere-src-"
735 "0njlh6d327nll7d8qaqrwr5x15m9yzgyar2j45qigs1f7ah896my"))))
737 (substitute-keyword-arguments (package-arguments qtsvg)
738 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
739 (native-inputs `(("perl" ,perl)))
743 (synopsis "Qt Extras for X11")
744 (description "The QtX11Extras module includes the library to access X11
745 from within Qt 5.")))
747 (define-public qtxmlpatterns
748 (package (inherit qtsvg)
749 (name "qtxmlpatterns")
753 (uri (string-append "https://download.qt.io/official_releases/qt/"
754 (version-major+minor version) "/" version
755 "/submodules/" name "-everywhere-src-"
759 "1dyg1z4349k04yyzn8xbp4f5qjgm60gz6wgzp80khpilcmk8g6i1"))))
761 (substitute-keyword-arguments (package-arguments qtsvg)
762 ((#:tests? _ #f) #f) ; TODO: Enable the tests
764 `(modify-phases ,phases
765 (add-after 'unpack 'disable-network-tests
766 (lambda _ (substitute* "tests/auto/auto.pro"
767 (("qxmlquery") "# qxmlquery")
768 (("xmlpatterns ") "# xmlpatterns"))
770 (native-inputs `(("perl" ,perl)
771 ("qtdeclarative" ,qtdeclarative)))
772 (inputs `(("qtbase" ,qtbase)))
773 (synopsis "Qt XML patterns module")
774 (description "The QtXmlPatterns module is a XQuery and XPath engine for
775 XML and custom data models. It contains programs such as xmlpatterns and
776 xmlpatternsvalidator.")))
778 (define-public qtdeclarative
779 (package (inherit qtsvg)
780 (name "qtdeclarative")
784 (uri (string-append "https://download.qt.io/official_releases/qt/"
785 (version-major+minor version) "/" version
786 "/submodules/" name "-everywhere-src-"
790 "0l0nhc2si6dl9r4s1bs45z90qqigs8jnrsyjjdy38q4pvix63i53"))))
792 (substitute-keyword-arguments (package-arguments qtsvg)
793 ((#:tests? _ #f) #f) ;TODO: Enable the tests
795 `(modify-phases ,phases
796 (add-after 'build 'fix-qt5core-install-prefix
797 (lambda* (#:key outputs #:allow-other-keys)
798 (let ((out (assoc-ref outputs "out")))
799 ;; The Qt5Core install prefix is set to qtbase, but qmlcachegen
800 ;; is provided by qtdeclarative.
802 "lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake"
803 (("\\$\\{_qt5Core_install_prefix\\}") out)))
807 ("pkg-config" ,pkg-config)
809 ("python-wrapper" ,python-wrapper)
811 ("vulkan-headers" ,vulkan-headers)))
815 (synopsis "Qt QML module (Quick 2)")
816 (description "The Qt QML module provides a framework for developing
817 applications and libraries with the QML language. It defines and implements the
818 language and engine infrastructure, and provides an API to enable application
819 developers to extend the QML language with custom types and integrate QML code
820 with JavaScript and C++.")))
822 (define-public qtconnectivity
823 (package (inherit qtsvg)
824 (name "qtconnectivity")
828 (uri (string-append "https://download.qt.io/official_releases/qt/"
829 (version-major+minor version) "/" version
830 "/submodules/" name "-everywhere-src-"
834 "0a5wzin635b926b8prdwfazgy1vhyf8m6an64wp2lpkp78z7prmb"))))
837 ("pkg-config" ,pkg-config)
838 ("qtdeclarative" ,qtdeclarative)))
842 (synopsis "Qt Connectivity module")
843 (description "The Qt Connectivity modules provides modules for interacting
844 with Bluetooth and NFC.")))
846 (define-public qtwebsockets
847 (package (inherit qtsvg)
848 (name "qtwebsockets")
852 (uri (string-append "https://download.qt.io/official_releases/qt/"
853 (version-major+minor version) "/" version
854 "/submodules/" name "-everywhere-src-"
858 "116amx4mnv50k0fpswgpr5x8wjny8nbffrjmld01pzhkhfqn4vph"))))
860 (substitute-keyword-arguments (package-arguments qtsvg)
861 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
864 ("qtdeclarative" ,qtdeclarative)))
865 (inputs `(("qtbase" ,qtbase)))
866 (synopsis "Qt Web Sockets module")
867 (description "WebSocket is a web-based protocol designed to enable two-way
868 communication between a client application and a remote host. The Qt
869 WebSockets module provides C++ and QML interfaces that enable Qt applications
870 to act as a server that can process WebSocket requests, or a client that can
871 consume data received from the server, or both.")))
873 (define-public qtsensors
874 (package (inherit qtsvg)
879 (uri (string-append "https://download.qt.io/official_releases/qt/"
880 (version-major+minor version) "/" version
881 "/submodules/" name "-everywhere-src-"
885 "0qccpgbhyg9k4x5nni7xm0pyvaqia3zrcd42cn7ksf5h21lwmkxw"))))
887 (substitute-keyword-arguments (package-arguments qtsvg)
888 ((#:parallel-tests? _ #f) #f) ; can lead to race condition
890 `(modify-phases ,phases
891 (add-after 'unpack 'fix-tests
893 (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp"
894 (("2000") "5000") ;lengthen test timeout
895 (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test
899 ("qtdeclarative" ,qtdeclarative)))
900 (inputs `(("qtbase" ,qtbase)))
901 (synopsis "Qt Sensors module")
902 (description "The Qt Sensors API provides access to sensor hardware via QML
903 and C++ interfaces. The Qt Sensors API also provides a motion gesture
904 recognition API for devices.")))
906 (define-public qtmultimedia
907 (package (inherit qtsvg)
908 (name "qtmultimedia")
912 (uri (string-append "https://download.qt.io/official_releases/qt/"
913 (version-major+minor version) "/" version
914 "/submodules/" name "-everywhere-src-"
918 "1sczzcvk3c5gczz53yvp8ma6gp8aixk5pcq7wh344c9md3g8xkbs"))
919 (modules '((guix build utils)))
922 (delete-file-recursively
923 "examples/multimedia/spectrum/3rdparty")
924 ;; We also prevent the spectrum example from being built.
925 (substitute* "examples/multimedia/multimedia.pro"
929 (substitute-keyword-arguments (package-arguments qtsvg)
931 `(modify-phases ,phases
933 (lambda* (#:key outputs #:allow-other-keys)
934 (let ((out (assoc-ref outputs "out")))
935 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"
936 (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,")
937 (string-append "PREFIX=" out)))))))
938 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
941 ("pkg-config" ,pkg-config)
943 ("qtdeclarative" ,qtdeclarative)))
945 `(("alsa-lib" ,alsa-lib)
947 ("pulseaudio" ,pulseaudio)
949 ;; Gstreamer is needed for the mediaplayer plugin
950 ("gstreamer" ,gstreamer)
951 ("gst-plugins-base" ,gst-plugins-base)))
952 (synopsis "Qt Multimedia module")
953 (description "The Qt Multimedia module provides set of APIs to play and
954 record media, and manage a collection of media content. It also contains a
955 set of plugins for interacting with pulseaudio and GStreamer.")))
957 (define-public qtwayland
958 (package (inherit qtsvg)
963 (uri (string-append "https://download.qt.io/official_releases/qt/"
964 (version-major+minor version) "/" version
965 "/submodules/" name "-everywhere-src-"
969 "0al3yypy3fin62n8d1859jh0mn0fbpa161l7f37hgd4gf75365nk"))
970 (modules '((guix build utils)))
972 ;; The examples try to build and cause the build to fail
974 (delete-file-recursively "examples")
977 (substitute-keyword-arguments (package-arguments qtsvg)
979 `(modify-phases ,phases
980 (add-after 'unpack 'disable-failing-tests
982 ;; FIXME: tst_seatv4::animatedCursor() fails for no good
983 ;; reason and breaks these two tests.
984 (substitute* "tests/auto/client/seatv4/tst_seatv4.cpp"
985 (((string-append "QVERIFY\\(!cursorSurface\\(\\)->"
986 "m_waitingFrameCallbacks\\.empty\\(\\)\\);"))
988 (("QTRY_COMPARE\\(bufferSpy\\.count\\(\\), 1\\);")
991 (add-before 'check 'set-test-environment
993 ;; Do not fail just because /etc/machine-id is missing.
994 (setenv "DBUS_FATAL_WARNINGS" "0")
999 ("pkg-config" ,pkg-config)
1000 ("qtdeclarative" ,qtdeclarative)))
1002 `(("fontconfig" ,fontconfig)
1003 ("freetype" ,freetype)
1005 ("libxcomposite" ,libxcomposite)
1006 ("libxext" ,libxext)
1007 ("libxkbcommon" ,libxkbcommon)
1008 ("libxrender" ,libxrender)
1012 ("wayland" ,wayland)))
1013 (synopsis "Qt Wayland module")
1014 (description "The Qt Wayland module provides the QtWayland client and
1015 compositor libraries.")))
1017 (define-public qtserialport
1018 (package (inherit qtsvg)
1019 (name "qtserialport")
1023 (uri (string-append "https://download.qt.io/official_releases/qt/"
1024 (version-major+minor version) "/" version
1025 "/submodules/" name "-everywhere-src-"
1029 "08ga9a1lwj83872nxablk602z1dq0la6jqsiicvd7m1sfbfpgnd6"))))
1030 (native-inputs `(("perl" ,perl)))
1032 `(("qtbase" ,qtbase)
1035 (substitute-keyword-arguments (package-arguments qtsvg)
1037 `(modify-phases ,phases
1038 (add-after 'unpack 'patch-dlopen-paths
1039 (lambda* (#:key inputs #:allow-other-keys)
1040 (substitute* "src/serialport/qtudev_p.h"
1041 ;; Use the absolute paths for dynamically loaded libs,
1042 ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
1043 ;; typically is not set in guix.
1044 (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
1045 (string-append a (assoc-ref inputs "eudev") "/lib/lib" b)))
1047 (synopsis "Qt Serial Port module")
1048 (description "The Qt Serial Port module provides the library for
1049 interacting with serial ports from within Qt.")))
1051 (define-public qtserialbus
1052 (package (inherit qtsvg)
1053 (name "qtserialbus")
1057 (uri (string-append "https://download.qt.io/official_releases/qt/"
1058 (version-major+minor version) "/" version
1059 "/submodules/" name "-everywhere-src-"
1063 "14bahg82jciciqkl74q9hvf3a8kp3pk5v731vp2416k4b8bn4xqb"))))
1065 (substitute-keyword-arguments (package-arguments qtsvg)
1066 ((#:phases phases '%standard-phases)
1067 `(modify-phases ,phases
1068 (add-after 'unpack 'patch-libsocketcan-reference
1069 (lambda* (#:key inputs #:allow-other-keys)
1070 (let* ((libcansocket (assoc-ref inputs "libsocketcan"))
1071 (libcansocket.so (string-append libcansocket
1072 "/lib/libsocketcan.so")))
1073 (substitute* "src/plugins/canbus/socketcan/libsocketcan.cpp"
1074 (("QStringLiteral\\(\"socketcan\"\\)")
1075 (format #f "QStringLiteral(~s)" libcansocket.so)))
1078 `(("libsocketcan" ,libsocketcan)
1080 ("qtserialport" ,qtserialport)))
1081 (synopsis "Qt Serial Bus module")
1082 (description "The Qt Serial Bus API provides classes and functions to
1083 access the various industrial serial buses and protocols, such as CAN, ModBus,
1086 (define-public qtwebchannel
1087 (package (inherit qtsvg)
1088 (name "qtwebchannel")
1092 (uri (string-append "https://download.qt.io/official_releases/qt/"
1093 (version-major+minor version) "/" version
1094 "/submodules/" name "-everywhere-src-"
1098 "0x7q66994pw6cd0f505bmirw1sssqs740zaw8lyqqqr32m2ch7bx"))))
1101 ("qtdeclarative" ,qtdeclarative)
1102 ("qtwebsockets" ,qtwebsockets)))
1103 (inputs `(("qtbase" ,qtbase)))
1104 (synopsis "Web communication library for Qt")
1105 (description "The Qt WebChannel module enables peer-to-peer communication
1106 between the host (QML/C++ application) and the client (HTML/JavaScript
1107 application). The transport mechanism is supported out of the box by the two
1108 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
1110 (define-public qtwebglplugin
1111 (package (inherit qtsvg)
1112 (name "qtwebglplugin")
1116 (uri (string-append "https://download.qt.io/official_releases/qt/"
1117 (version-major+minor version) "/" version
1118 "/submodules/" name "-everywhere-src-"
1122 "05rl657848fsprsnabdqb5z363c6drjc32k59223vl351f8ihhgb"))))
1124 (substitute-keyword-arguments (package-arguments qtsvg)
1126 `(modify-phases ,phases
1127 (add-after 'unpack 'disable-network-tests
1128 (lambda _ (substitute* "tests/plugins/platforms/platforms.pro"
1129 (("webgl") "# webgl"))
1135 ("qtdeclarative" ,qtdeclarative)
1136 ("qtwebsockets" ,qtwebsockets)
1138 (synopsis "QPA plugin for running an application via a browser using
1139 streamed WebGL commands")
1140 (description "Qt back end that uses WebGL for rendering. It allows Qt
1141 applications (with some limitations) to run in a web browser that supports
1142 WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
1143 compatible web browser without the use of plug-ins. The API is similar to
1144 OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
1146 (define-public qtwebview
1147 (package (inherit qtsvg)
1152 (uri (string-append "https://download.qt.io/official_releases/qt/"
1153 (version-major+minor version) "/" version
1154 "/submodules/" name "-everywhere-src-"
1158 "0jzzcm7z5njkddzfhmyjz4dbbzq8h93980cci4479zc4xq9r47y6"))))
1162 `(("qtbase" ,qtbase)
1163 ("qtdeclarative" ,qtdeclarative)))
1164 (synopsis "Display web content in a QML application")
1165 (description "Qt WebView provides a way to display web content in a QML
1166 application without necessarily including a full web browser stack by using
1167 native APIs where it makes sense.")))
1169 (define-public qtlocation
1170 (package (inherit qtsvg)
1175 (uri (string-append "https://download.qt.io/official_releases/qt/"
1176 (version-major+minor version) "/" version
1177 "/submodules/" name "-everywhere-src-"
1181 "1k3m8zhbv04yrqvj7jlnh8f9xczdsmla59j9gcwsqvbg76y0hxy3"))))
1183 (substitute-keyword-arguments (package-arguments qtsvg)
1184 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1187 ("qtdeclarative" ,qtdeclarative)
1188 ("qtquickcontrols" ,qtquickcontrols)
1189 ("qtserialport" ,qtserialport)))
1192 ("openssl" ,openssl)
1195 (synopsis "Qt Location and Positioning modules")
1196 (description "The Qt Location module provides an interface for location,
1197 positioning and geolocation plugins.")))
1199 (define-public qttools
1200 (package (inherit qtsvg)
1205 (uri (string-append "https://download.qt.io/official_releases/qt/"
1206 (version-major+minor version) "/" version
1207 "/submodules/" name "-everywhere-src-"
1211 "1iakl3hlyg51ri1czmis8mmb257b0y1zk2a2knybd3mq69wczc2v"))))
1213 (substitute-keyword-arguments (package-arguments qtsvg)
1214 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1217 ("qtdeclarative" ,qtdeclarative)
1218 ("vulkan-headers" ,vulkan-headers)))
1221 ("qtbase" ,qtbase)))
1222 (synopsis "Qt Tools and Designer modules")
1223 (description "The Qt Tools module provides a set of applications to browse
1224 the documentation, translate applications, generate help files and other stuff
1225 that helps in Qt development.")))
1227 (define-public qtscript
1228 (package (inherit qtsvg)
1233 (uri (string-append "https://download.qt.io/official_releases/qt/"
1234 (version-major+minor version) "/" version
1235 "/submodules/" name "-everywhere-src-"
1239 "1zlvg3hc6h70d789g3kv6dxbwswzkskkm00bdgl01grwrdy4izg9"))
1240 (patches (search-patches "qtscript-disable-tests.patch"))))
1243 ("qttools" ,qttools)))
1245 `(("qtbase" ,qtbase)))
1246 (synopsis "Qt Script module")
1247 (description "Qt provides support for application scripting with ECMAScript.
1248 The following guides and references cover aspects of programming with
1249 ECMAScript and Qt.")))
1251 (define-public qtquickcontrols
1252 (package (inherit qtsvg)
1253 (name "qtquickcontrols")
1257 (uri (string-append "https://download.qt.io/official_releases/qt/"
1258 (version-major+minor version) "/" version
1259 "/submodules/" name "-everywhere-src-"
1263 "0qa4dlhn3iv9yvaic8hw86v6h8rn9sgq8xjfdaym04pfshfyypfm"))))
1265 (substitute-keyword-arguments (package-arguments qtsvg)
1266 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1268 `(("qtbase" ,qtbase)
1269 ("qtdeclarative" ,qtdeclarative)))
1270 (synopsis "Qt Quick Controls and other Quick modules")
1271 (description "The QtScript module provides classes for making Qt
1272 applications scriptable. This module provides a set of extra components that
1273 can be used to build complete interfaces in Qt Quick.")))
1275 (define-public qtquickcontrols2
1276 (package (inherit qtsvg)
1277 (name "qtquickcontrols2")
1281 (uri (string-append "https://download.qt.io/official_releases/qt/"
1282 (version-major+minor version) "/" version
1283 "/submodules/" name "-everywhere-src-"
1287 "0q0mk2mjlf9ll0gdrdzxy8096s6g9draaqiwrlvdpa7lv14x7xzs"))))
1289 (substitute-keyword-arguments (package-arguments qtsvg)
1290 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1292 `(("qtbase" ,qtbase)
1293 ("qtdeclarative" ,qtdeclarative)))
1294 (synopsis "Qt Quick Controls 2 and other Quick 2 modules")
1295 (description "The Qt Quick Controls 2 module contains the Qt Labs Platform
1296 module that provides platform integration: native dialogs, menus and menu bars,
1297 and tray icons. It falls back to Qt Widgets when a native implementation is
1300 (define-public qtgraphicaleffects
1301 (package (inherit qtsvg)
1302 (name "qtgraphicaleffects")
1306 (uri (string-append "https://download.qt.io/official_releases/qt/"
1307 (version-major+minor version) "/" version
1308 "/submodules/" name "-everywhere-src-"
1312 "03xmwhapv0b2qj661iaqqrvhxc7qiid0acrp6rj85824ha2pyyj8"))))
1314 (substitute-keyword-arguments (package-arguments qtsvg)
1315 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1317 `(("qtbase" ,qtbase)
1318 ("qtdeclarative" ,qtdeclarative)))
1319 (synopsis "Qt Graphical Effects module")
1320 (description "The Qt Graphical Effects module provides a set of QML types
1321 for adding visually impressive and configurable effects to user interfaces.
1322 Effects are visual items that can be added to Qt Quick user interface as UI
1323 components. The API consists of over 20 effects provided as separate QML
1324 types. The effects cover functional areas such as blending, masking, blurring,
1325 coloring, and many more.")))
1327 (define-public qtgamepad
1328 (package (inherit qtsvg)
1333 (uri (string-append "https://download.qt.io/official_releases/qt/"
1334 (version-major+minor version) "/" version
1335 "/submodules/" name "-everywhere-src-"
1339 "00wd3h465waxdghg2vdhs5pkj0xikwjn88l12477dksm8zdslzgp"))))
1342 ("pkg-config" ,pkg-config)))
1344 `(("fontconfig" ,fontconfig)
1345 ("freetype" ,freetype)
1346 ("libxrender" ,libxrender)
1349 ("qtdeclarative" ,qtdeclarative)))
1350 (synopsis "Qt Gamepad module")
1351 (description "The Qt Gamepad module is an add-on library that enables Qt
1352 applications to support the use of gamepad hardware and in some cases remote
1353 control equipment. The module provides both QML and C++ interfaces. The
1354 primary target audience are embedded devices with fullscreen user interfaces,
1355 and mobile applications targeting TV-like form factors.")))
1357 (define-public qtscxml
1358 (package (inherit qtsvg)
1363 (uri (string-append "https://download.qt.io/official_releases/qt/"
1364 (version-major+minor version) "/" version
1365 "/submodules/" name "-everywhere-src-"
1369 "141pfschv6zmcvvn3pi7f5vb4nf96zpngy80f9bly1sn58syl303"))
1370 (modules '((guix build utils)))
1373 (delete-file-recursively "tests/3rdparty")
1374 ;; the scion test refers to the bundled 3rd party test code.
1375 (substitute* "tests/auto/auto.pro"
1379 `(("qtbase" ,qtbase)
1380 ("qtdeclarative" ,qtdeclarative)))
1381 (synopsis "Qt SCXML module")
1382 (description "The Qt SCXML module provides functionality to create state
1383 machines from SCXML files. This includes both dynamically creating state
1384 machines (loading the SCXML file and instantiating states and transitions) and
1385 generating a C++ file that has a class implementing the state machine. It
1386 also contains functionality to support data models and executable content.")))
1388 (define-public qtpurchasing
1389 (package (inherit qtsvg)
1390 (name "qtpurchasing")
1394 (uri (string-append "https://download.qt.io/official_releases/qt/"
1395 (version-major+minor version) "/" version
1396 "/submodules/" name "-everywhere-src-"
1400 "0lg8x7g7dkf95xwxq8b4yw4ypdz68igkscya96xwbklg3q08gc39"))))
1402 `(("qtbase" ,qtbase)
1403 ("qtdeclarative" ,qtdeclarative)))
1404 (synopsis "Qt Purchasing module")
1405 (description "The Qt Purchasing module provides and in-app API for
1406 purchasing goods and services.")))
1408 (define-public qtcharts
1409 (package (inherit qtsvg)
1414 (uri (string-append "https://download.qt.io/official_releases/qt/"
1415 (version-major+minor version) "/" version
1416 "/submodules/" name "-everywhere-src-"
1420 "1drvm15i6n10b6a1acgarig120ppvqh3r6fqqdn8i3blx81m5cmd"))))
1422 (substitute-keyword-arguments (package-arguments qtsvg)
1423 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1425 `(("qtbase" ,qtbase)
1426 ("qtdeclarative" ,qtdeclarative)))
1427 (synopsis "Qt Charts module")
1428 (description "The Qt Charts module provides a set of easy to use chart
1429 components. It uses the Qt Graphics View Framework, therefore charts can be
1430 easily integrated to modern user interfaces. Qt Charts can be used as QWidgets,
1431 QGraphicsWidget, or QML types. Users can easily create impressive graphs by
1432 selecting one of the charts themes.")
1433 (license license:gpl3)))
1435 (define-public qtdatavis3d
1436 (package (inherit qtsvg)
1437 (name "qtdatavis3d")
1441 (uri (string-append "https://download.qt.io/official_releases/qt/"
1442 (version-major+minor version) "/" version
1443 "/submodules/" name "-everywhere-src-"
1447 "080fkpxg70m3c697wfnkjhca58b7r1xsqd559jzb21985pdh6g3j"))))
1449 (substitute-keyword-arguments (package-arguments qtsvg)
1450 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1452 `(("qtbase" ,qtbase)
1453 ("qtdeclarative" ,qtdeclarative)))
1454 (synopsis "Qt Data Visualization module")
1455 (description "The Qt Data Visualization module provides a way to visualize
1456 data in 3D as bar, scatter, and surface graphs. It is especially useful for
1457 visualizing depth maps and large quantities of rapidly changing data, such as
1458 data received from multiple sensors. The look and feel of graphs can be
1459 customized by using themes or by adding custom items and labels to them.")
1460 (license license:gpl3)))
1462 (define-public qtnetworkauth
1463 (package (inherit qtsvg)
1464 (name "qtnetworkauth")
1468 (uri (string-append "https://download.qt.io/official_releases/qt/"
1469 (version-major+minor version) "/" version
1470 "/submodules/" name "-everywhere-src-"
1474 "0pi6p7bq54kzij2p69cgib7n55k69jsq0yqq09yli645s4ym202g"))))
1476 (substitute-keyword-arguments (package-arguments qtsvg)
1478 `(modify-phases ,phases
1479 (add-after 'unpack 'remove-failing-test
1481 ;; These tests can't find their test data.
1482 (substitute* "tests/auto/auto.pro"
1483 (("oauth1 ") "# oauth1 "))
1486 `(("qtbase" ,qtbase)))
1487 (synopsis "Qt Network Authorization module")
1488 (description "The Qt Network Authorization module provides an
1489 implementation of OAuth and OAuth2 authenticathon methods for Qt.")))
1491 (define-public qtremoteobjects
1492 (package (inherit qtsvg)
1493 (name "qtremoteobjects")
1497 (uri (string-append "https://download.qt.io/official_releases/qt/"
1498 (version-major+minor version) "/" version
1499 "/submodules/" name "-everywhere-src-"
1503 "1mhlws5w0igf5hw0l90p6dz6k7w16dqfbnk2li0zxdmayk2039m6"))))
1505 (substitute-keyword-arguments (package-arguments qtsvg)
1507 `(modify-phases ,phases
1508 (add-after 'unpack 'remove-failing-test
1510 ;; This test can't find its imports.
1511 (substitute* "tests/auto/qml/qml.pro"
1512 (("integration") "# integration")
1513 (("usertypes") "# usertypes"))
1514 ;; disable failing tests: they need network
1515 (substitute* "tests/auto/auto.pro"
1516 (("integration_multiprocess proxy_multiprocess integration_external restart")
1517 "integration_multiprocess"))
1520 `(("qtbase" ,qtbase)
1521 ("qtdeclarative" ,qtdeclarative)))
1522 (synopsis "Qt Remote Objects module")
1523 (description "The Qt Remote Objects module is an @dfn{inter-process
1524 communication} (IPC) module developed for Qt. The idea is to extend existing
1525 Qt's functionalities to enable an easy exchange of information between
1526 processes or computers.")))
1528 (define-public qtspeech
1529 (package (inherit qtsvg)
1534 (uri (string-append "https://download.qt.io/official_releases/qt/"
1535 (version-major+minor version) "/" version
1536 "/submodules/" name "-everywhere-src-"
1540 "1nn6kspbp8hfkz1jhzc1qx1m9z7r1bgkdqgi9n4vl1q25yk8x7jy"))))
1543 (substitute-keyword-arguments (package-arguments qtsvg)
1544 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1546 `(("qtbase" ,qtbase)))
1549 ("qtdeclarative" ,qtdeclarative)
1550 ("qtmultimedia" ,qtmultimedia)
1551 ("qtxmlpatterns" ,qtxmlpatterns)))
1552 (synopsis "Qt Speech module")
1553 (description "The Qt Speech module enables a Qt application to support
1554 accessibility features such as text-to-speech, which is useful for end-users
1555 who are visually challenged or cannot access the application for whatever
1556 reason. The most common use case where text-to-speech comes in handy is when
1557 the end-user is driving and cannot attend the incoming messages on the phone.
1558 In such a scenario, the messaging application can read out the incoming
1561 (define-public qtspell
1569 (url "https://github.com/manisandro/qtspell")
1571 (file-name (git-file-name name version))
1573 (base32 "1081makirjxixz44ghwz362vgnk5wcks6ni6w01pl667x8wggsd2"))))
1574 (build-system cmake-build-system)
1576 `(#:tests? #f)) ;no test
1578 `(("pkg-config" ,pkg-config)
1579 ("qttools" ,qttools)))
1581 `(("enchant" ,enchant)
1582 ("qtbase" ,qtbase)))
1583 (home-page "https://github.com/manisandro/qtspell")
1584 (synopsis "Spell checking for Qt text widgets")
1586 "QtSpell adds spell-checking functionality to Qt's text widgets,
1587 using the Enchant spell-checking library.")
1588 ;; COPYING file specify GPL3, but source code files all refer to GPL2+.
1589 (license license:gpl2+)))
1591 (define-public qtwebengine
1594 (name "qtwebengine")
1595 (version (package-version qtbase))
1599 (uri (string-append "https://download.qt.io/official_releases/qt/"
1600 (version-major+minor version) "/" version
1601 "/submodules/" name "-everywhere-src-"
1605 "0iy9lsl6zxlkca6x2p1506hbj3wmhnaipg23z027wfccbnkxcsg1"))
1606 (modules '((ice-9 ftw)
1610 (guix build utils)))
1613 (let ((preserved-third-party-files
1614 '("base/third_party/cityhash"
1615 "base/third_party/dmg_fp"
1616 "base/third_party/dynamic_annotations"
1617 "base/third_party/icu"
1618 "base/third_party/libevent"
1619 "base/third_party/nspr"
1620 "base/third_party/superfasthash"
1621 "base/third_party/symbolize"
1622 "base/third_party/xdg_mime"
1623 "base/third_party/xdg_user_dirs"
1624 "net/third_party/mozilla_security_manager"
1625 "net/third_party/nss"
1626 "net/third_party/quiche"
1627 "net/third_party/uri_template"
1628 "third_party/abseil-cpp"
1630 "third_party/angle/src/common/third_party/base"
1631 "third_party/angle/src/common/third_party/smhasher"
1632 "third_party/angle/src/common/third_party/xxhash"
1633 "third_party/angle/src/third_party/compiler"
1634 "third_party/axe-core"
1636 "third_party/boringssl"
1637 "third_party/boringssl/src/third_party/fiat"
1638 "third_party/boringssl/src/third_party/sike"
1639 "third_party/boringssl/linux-x86_64/crypto/third_party/sike"
1640 "third_party/boringssl/linux-aarch64/crypto/third_party/sike"
1641 "third_party/breakpad"
1642 "third_party/brotli"
1645 "third_party/crc32c"
1648 "third_party/emoji-segmenter"
1649 "third_party/ffmpeg"
1650 "third_party/googletest"
1651 "third_party/hunspell"
1652 "third_party/iccjpeg"
1654 "third_party/inspector_protocol"
1655 "third_party/jinja2"
1656 "third_party/jsoncpp"
1657 "third_party/jstemplate"
1658 "third_party/khronos"
1659 "third_party/leveldatabase"
1660 "third_party/libaddressinput"
1661 "third_party/libjingle_xmpp"
1662 "third_party/libjpeg"
1663 "third_party/libpng"
1664 "third_party/libsrtp"
1665 "third_party/libsync"
1666 "third_party/libudev"
1667 "third_party/libvpx"
1668 "third_party/libwebm"
1669 "third_party/libwebp"
1670 "third_party/libxml"
1671 "third_party/libxslt"
1672 "third_party/libyuv"
1674 "third_party/markupsafe"
1675 "third_party/mesa_headers"
1676 "third_party/metrics_proto"
1677 "third_party/modp_b64"
1679 "third_party/one_euro_filter"
1682 "third_party/perfetto"
1685 "third_party/polymer"
1686 "third_party/protobuf"
1687 "third_party/pyjson5"
1689 "third_party/rnnoise"
1691 "third_party/skia/include/third_party/skcms/skcms.h"
1692 "third_party/skia/include/third_party/vulkan"
1693 "third_party/skia/third_party/gif"
1694 "third_party/skia/third_party/skcms"
1695 "third_party/skia/third_party/vulkanmemoryallocator"
1696 "third_party/smhasher"
1697 "third_party/snappy"
1698 "third_party/sqlite"
1699 "third_party/usb_ids"
1700 "third_party/usrsctp"
1701 "third_party/web-animations-js"
1702 "third_party/webrtc"
1703 "third_party/webrtc/common_audio/third_party/fft4g"
1704 "third_party/webrtc/common_audio/third_party/spl_sqrt_floor"
1705 "third_party/webrtc/modules/third_party/fft"
1706 "third_party/webrtc/modules/third_party/g711"
1707 "third_party/webrtc/modules/third_party/g722"
1708 "third_party/webrtc/rtc_base/third_party/base64"
1709 "third_party/webrtc/rtc_base/third_party/sigslot"
1710 "third_party/webrtc_overrides"
1711 "third_party/widevine/cdm/widevine_cdm_common.h"
1712 "third_party/widevine/cdm/widevine_cdm_version.h"
1716 "url/third_party/mozilla"
1717 "v8/src/third_party/utf8-decoder"
1718 "v8/src/third_party/valgrind"
1719 "v8/src/third_party/siphash"
1720 "v8/third_party/v8/builtins"
1721 "v8/third_party/inspector_protocol"))
1722 (protected (make-regexp "\\.(gn|gyp)i?$")))
1723 (define preserved-club
1724 (map (lambda (member)
1725 (string-append "./" member))
1726 preserved-third-party-files))
1727 (define (empty? dir)
1728 (equal? (scandir dir) '("." "..")))
1729 (define (third-party? file)
1730 (string-contains file "third_party/"))
1731 (define (useless? file)
1732 (any (cute string-suffix? <> file)
1733 '(".zip" ".so" ".dll" ".exe" ".jar")))
1734 (define (parents child)
1735 ;; Return all parent directories of CHILD up to and including
1736 ;; the closest "third_party".
1737 (let* ((dirs (match (string-split child #\/)
1738 ((dirs ... last) dirs)))
1739 (closest (list-index (lambda (dir)
1740 (string=? "third_party" dir))
1742 (delim (- (length dirs) closest)))
1743 (fold (lambda (dir prev)
1744 (cons (string-append (car prev) "/" dir)
1746 (list (string-join (list-head dirs delim) "/"))
1747 (list-tail dirs delim))))
1748 (define (remove-loudly file)
1749 (format #t "deleting ~a...~%" file)
1752 (define (delete-unwanted-files child stat flag base level)
1754 ((or 'regular 'symlink 'stale-symlink)
1755 (when (third-party? child)
1756 (unless (or (member child preserved-club)
1757 (any (cute member <> preserved-club)
1759 (regexp-exec protected child))
1760 (remove-loudly child)))
1761 (when (and (useless? child) (file-exists? child))
1762 (remove-loudly child))
1764 ('directory-processed
1765 (when (empty? child)
1770 (with-directory-excursion "src/3rdparty"
1771 ;; TODO: Try removing "gn" too for future versions of qtwebengine.
1772 (delete-file-recursively "ninja")
1774 (with-directory-excursion "chromium"
1775 ;; Delete bundled software and binaries that were not explicitly
1777 (nftw "." delete-unwanted-files 'depth 'physical)
1779 ;; Assert that each preserved item is present to catch removals.
1780 (for-each (lambda (third-party)
1781 (unless (file-exists? third-party)
1782 (error (format #f "~s does not exist!~%" third-party))))
1785 ;; Use relative header locations instead of hard coded ones.
1787 "base/third_party/dynamic_annotations/dynamic_annotations.c"
1788 (("base/third_party/valgrind") "valgrind"))
1790 "third_party/breakpad/breakpad/src/common/linux/libcurl_wrapper.h"
1791 (("third_party/curl") "curl"))
1793 '("components/viz/common/gpu/vulkan_context_provider.h"
1794 "components/viz/common/resources/resource_format_utils.h"
1795 "gpu/config/gpu_util.cc")
1796 (("third_party/vulkan/include/")
1799 ;; Replace Google Analytics bundle with an empty file and hope
1801 (mkdir-p "third_party/analytics")
1802 (call-with-output-file
1803 "third_party/analytics/google-analytics-bundle.js"
1806 ;; Do not enable support for loading the Widevine DRM plugin.
1807 (substitute* "src/buildtools/config/common.pri"
1808 (("enable_widevine=true")
1809 "enable_widevine=false"))
1811 (build-system gnu-build-system)
1818 ("pkg-config" ,pkg-config)
1819 ("python-2" ,python-2)
1822 `(("alsa-lib" ,alsa-lib)
1824 ("cups-minimal" ,cups-minimal)
1828 ("fontconfig" ,fontconfig)
1829 ("harbuzz" ,harfbuzz)
1831 ("jsoncpp" ,jsoncpp)
1834 ("libevent" ,libevent)
1835 ("libgcrypt" ,libgcrypt)
1836 ("libjpeg" ,libjpeg-turbo)
1838 ("libwebp" ,libwebp)
1841 ("libxcomposite" ,libxcomposite)
1842 ("libxcursor" ,libxcursor)
1844 ("libxkbcommon" ,libxkbcommon)
1845 ;; FIXME: libxml2 needs to built with icu support though it links to
1846 ;; libxml2 configure summary still states "Checking for compatible
1847 ;; system libxml2... no"
1848 ("libxml2" ,libxml2)
1849 ("libxrandr" ,libxrandr)
1850 ("libxrender" ,libxrender)
1851 ("libxslt" ,libxslt)
1852 ("libxtst" ,libxtst)
1854 ("minizip" ,minizip)
1857 ("pciutils" ,pciutils)
1858 ("protobuf" ,protobuf)
1859 ("pulseaudio" ,pulseaudio)
1861 ("qtdeclarative" ,qtdeclarative)
1862 ("qtmultimedia" ,qtmultimedia)
1863 ("qtwebchannel" ,qtwebchannel)
1867 ("valgrind" ,valgrind)
1868 ("vulkan-headers" ,vulkan-headers)
1869 ("xcb-util" ,xcb-util)))
1871 (substitute-keyword-arguments (package-arguments qtsvg)
1873 `(modify-phases ,phases
1874 (add-after 'unpack 'fix-build-with-newer-re2
1876 ;; Adjust for API change in re2, taken from
1877 ;; https://chromium-review.googlesource.com/c/chromium/src/+/2145261
1878 (substitute* "src/3rdparty/chromium/components/autofill/core\
1879 /browser/address_rewriter.cc"
1880 (("options\\.set_utf8\\(true\\)")
1881 "options.set_encoding(RE2::Options::EncodingUTF8)"))
1883 (add-after 'unpack 'patch-ninja-version-check
1885 ;; The build system assumes the system Ninja is too old because
1886 ;; it only checks for versions 1.7 through 1.9. We have 1.10.
1887 (substitute* "configure.pri"
1888 (("1\\.\\[7-9\\]\\.\\*")
1889 "1.([7-9]|1[0-9]).*"))
1891 (add-before 'configure 'substitute-source
1892 (lambda* (#:key inputs outputs #:allow-other-keys)
1893 (let ((out (assoc-ref outputs "out"))
1894 (nss (assoc-ref inputs "nss"))
1895 (udev (assoc-ref inputs "udev")))
1896 ;; Qtwebengine is not installed into the same prefix as
1897 ;; qtbase. Some qtbase QTLibraryInfo constants will not
1898 ;; work. Replace with the full path to the qtwebengine
1899 ;; translations and locales in the store.
1900 (substitute* "src/core/web_engine_library_info.cpp"
1901 (("QLibraryInfo::location\\(QLibraryInfo::TranslationsPath\\)")
1902 (string-append "QLatin1String(\"" out "/share/qt5/translations\")"))
1903 (("QLibraryInfo::location\\(QLibraryInfo::DataPath\\)")
1904 (string-append "QLatin1String(\"" out "/share/qt5\")")))
1905 ;; Substitute full dynamic library path for nss.
1906 (substitute* "src/3rdparty/chromium/crypto/nss_util.cc"
1908 (string-append nss "/lib/nss/libnssckbi.so")))
1909 ;; Substitute full dynamic library path for udev.
1910 (substitute* "src/3rdparty/chromium/device/udev_linux/udev1_loader.cc"
1912 (string-append udev "/lib/libudev.so.1")))
1914 (add-before 'configure 'set-env
1916 ;; Avoids potential race conditions.
1917 (setenv "PYTHONDONTWRITEBYTECODE" "1")
1918 (setenv "NINJAFLAGS"
1919 (string-append "-k1" ;less verbose build output
1920 ;; Respect the '--cores' option of 'guix build'.
1921 " -j" (number->string (parallel-job-count))))
1925 ;; Valid QT_BUILD_PARTS variables are:
1926 ;; libs tools tests examples demos docs translations
1927 (invoke "qmake" "QT_BUILD_PARTS = libs tools" "--"
1928 "--webengine-printing-and-pdf=no"
1929 "--webengine-ffmpeg=system"
1930 "--webengine-icu=system"
1931 "--webengine-pepper-plugins=no")))))
1932 ;; Tests are disabled due to "Could not find QtWebEngineProcess error"
1933 ;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
1934 ;; before running tests.
1935 ((#:tests? _ #f) #f)))
1936 (native-search-paths
1937 (list (search-path-specification
1938 (file-type 'regular)
1940 (variable "QTWEBENGINEPROCESS_PATH")
1941 (files '("lib/qt5/libexec/QtWebEngineProcess")))))
1942 (home-page "https://wiki.qt.io/QtWebEngine")
1943 (synopsis "Qt WebEngine module")
1944 (description "The Qt5WebEngine module provides support for web applications
1945 using the Chromium browser project. The Chromium source code has Google services
1946 and binaries removed, and adds modular support for using system libraries.")
1947 (license license:lgpl2.1+)))
1949 (define-public python-sip
1956 (uri (string-append "https://www.riverbankcomputing.com/static/"
1957 "Downloads/sip/" version "/sip-" version ".tar.gz"))
1960 "0idywc326l8v1m3maprg1aq2gph67mmnnsskvlwfx8n19s16idz1"))))
1961 (build-system gnu-build-system)
1963 `(("python" ,python-wrapper)))
1965 `(#:tests? #f ; no check target
1966 #:imported-modules ((guix build python-build-system)
1967 ,@%gnu-build-system-modules)
1968 #:modules ((srfi srfi-1)
1969 ((guix build python-build-system) #:select (python-version))
1970 ,@%gnu-build-system-modules)
1972 (modify-phases %standard-phases
1974 (lambda* (#:key inputs outputs #:allow-other-keys)
1975 (let* ((out (assoc-ref outputs "out"))
1976 (bin (string-append out "/bin"))
1977 (include (string-append out "/include"))
1978 (python (assoc-ref inputs "python"))
1979 (lib (string-append out "/lib/python"
1980 (python-version python)
1982 (invoke "python" "configure.py"
1985 "--incdir" include)))))))
1986 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
1987 (synopsis "Python binding creator for C and C++ libraries")
1989 "SIP is a tool to create Python bindings for C and C++ libraries. It
1990 was originally developed to create PyQt, the Python bindings for the Qt
1991 toolkit, but can be used to create bindings for any C or C++ library.
1993 SIP comprises a code generator and a Python module. The code generator
1994 processes a set of specification files and generates C or C++ code, which
1995 is then compiled to create the bindings extension module. The SIP Python
1996 module provides support functions to the automatically generated code.")
1997 ;; There is a choice between a python like license, gpl2 and gpl3.
1998 ;; For compatibility with pyqt, we need gpl3.
1999 (license license:gpl3)))
2001 (define-public python2-sip
2002 (package (inherit python-sip)
2003 (name "python2-sip")
2005 `(("python" ,python-2)))))
2007 (define-public python-pyqt
2009 (name "python-pyqt")
2014 ;; PyPI is the canonical distribution point of PyQt. Older
2015 ;; releases are available from the web site.
2016 (uri (list (pypi-uri "PyQt5" version)
2017 (string-append "https://www.riverbankcomputing.com/static/"
2018 "Downloads/PyQt5/" version "/PyQt5-"
2019 version ".tar.gz")))
2020 (file-name (string-append "PyQt5-"version ".tar.gz"))
2023 "1c4y4qi1l540gd125ikj0al00k5pg65kmqaixcfbzslrsrphq8xx"))
2024 (patches (search-patches "pyqt-configure.patch"
2025 "pyqt-public-sip.patch"))))
2026 (build-system gnu-build-system)
2028 `(("qtbase" ,qtbase))) ; for qmake
2030 `(("python-sip" ,python-sip)))
2032 `(("python" ,python-wrapper)
2034 ("qtconnectivity" ,qtconnectivity)
2035 ("qtdeclarative" ,qtdeclarative)
2036 ("qtlocation" ,qtlocation)
2037 ("qtmultimedia" ,qtmultimedia)
2038 ("qtsensors" ,qtsensors)
2039 ("qtserialport" ,qtserialport)
2041 ("qttools" ,qttools)
2042 ("qtwebchannel" ,qtwebchannel)
2043 ("qtwebkit" ,qtwebkit)
2044 ("qtwebsockets" ,qtwebsockets)
2045 ("qtx11extras" ,qtx11extras)
2046 ("qtxmlpatterns" ,qtxmlpatterns)))
2048 `(#:modules ((srfi srfi-1)
2049 ((guix build python-build-system) #:select (python-version))
2050 ,@%gnu-build-system-modules)
2051 #:imported-modules ((guix build python-build-system)
2052 ,@%gnu-build-system-modules)
2054 (modify-phases %standard-phases
2055 ;; When building python-pyqtwebengine, <qprinter.h> can not be
2056 ;; included. Here we substitute the full path to the header in the
2058 (add-before 'configure 'substitute-source
2059 (lambda* (#:key inputs #:allow-other-keys)
2060 (let* ((qtbase (assoc-ref inputs "qtbase"))
2061 (qtprinter.h (string-append "\"" qtbase "/include/qt5/QtPrintSupport/qprinter.h\"")))
2062 (substitute* "sip/QtPrintSupport/qprinter.sip"
2067 (lambda* (#:key inputs outputs #:allow-other-keys)
2068 (let* ((out (assoc-ref outputs "out"))
2069 (bin (string-append out "/bin"))
2070 (sip (string-append out "/share/sip"))
2071 (plugins (string-append out "/lib/qt5/plugins"))
2072 (designer (string-append plugins "/designer"))
2073 (qml (string-append plugins "/PyQt5"))
2074 (python (assoc-ref inputs "python"))
2075 (lib (string-append out "/lib/python"
2076 (python-version python)
2078 (stubs (string-append lib "/PyQt5")))
2079 (invoke "python" "configure.py"
2083 "--designer-plugindir" designer
2084 "--qml-plugindir" qml
2085 ; Where to install the PEP 484 Type Hints stub
2086 ; files. Without this the stubs are tried to be
2087 ; installed into the python package's
2088 ; site-package directory, which is read-only.
2090 "--sipdir" sip)))))))
2091 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
2092 (synopsis "Python bindings for Qt")
2094 "PyQt is a set of Python v2 and v3 bindings for the Qt application
2095 framework. The bindings are implemented as a set of Python modules and
2096 contain over 620 classes.")
2097 (license license:gpl3)))
2099 (define-public python-pyqtwebengine
2101 (name "python-pyqtwebengine")
2106 ;; The newest releases are only available on PyPI. Older ones
2107 ;; are mirrored at the upstream home page.
2108 (uri (list (pypi-uri "PyQtWebEngine" version)
2109 (string-append "https://www.riverbankcomputing.com/static"
2110 "/Downloads/PyQtWebEngine/" version
2111 "/PyQtWebEngine-" version ".tar.gz")))
2114 "14hw49akb35n9pgiw564x8ykmsifihn9p2ax2x4zmywb3w2ra5g1"))))
2115 (build-system gnu-build-system)
2117 `(("python" ,python)
2118 ("python-sip" ,python-sip)
2119 ;; qtbase is required for qmake
2120 ("qtbase" ,qtbase)))
2122 `(("python" ,python-wrapper)
2123 ("python-sip" ,python-sip)
2124 ("python-pyqt" ,python-pyqt)
2127 ("qtdeclarative" ,qtdeclarative)
2128 ("qtwebchannel" ,qtwebchannel)
2129 ("qtwebengine" ,qtwebengine)))
2131 `(#:modules ((srfi srfi-1)
2132 ((guix build python-build-system) #:select (python-version))
2133 ,@%gnu-build-system-modules)
2134 #:imported-modules ((guix build python-build-system)
2135 ,@%gnu-build-system-modules)
2137 (modify-phases %standard-phases
2139 (lambda* (#:key inputs outputs #:allow-other-keys)
2140 (let* ((out (assoc-ref outputs "out"))
2141 (sipdir (string-append out "/share/sip"))
2142 (pyqt-sipdir (string-append
2143 (assoc-ref inputs "python-pyqt") "/share/sip"))
2144 (python (assoc-ref inputs "python"))
2145 (lib (string-append out "/lib/python"
2146 (python-version python)
2147 "/site-packages/PyQt5"))
2148 (stubs (string-append lib "/PyQt5")))
2151 (invoke "python" "configure.py"
2158 "--pyqt-sipdir" pyqt-sipdir))))
2159 ;; Because this has a different prefix than python-pyqt then we need
2160 ;; to make this a namespace of it's own
2161 (add-after 'install 'make-namespace
2162 (lambda* (#:key inputs outputs #:allow-other-keys)
2163 (let* ((__init__.py (string-append
2164 (assoc-ref outputs "out")
2166 (python-version (assoc-ref inputs "python"))
2167 "/site-packages/PyQt5/__init__.py")))
2168 (with-output-to-file __init__.py
2169 (lambda _ (display "
2170 from pkgutil import extend_path
2171 __path__ = extend_path(__path__, __name__)
2174 (home-page "https://www.riverbankcomputing.com/software/pyqtwebengine/intro")
2175 (synopsis "Python bindings for QtWebEngine")
2177 "PyQtWebEngine is a set of Python bindings for The Qt Company's Qt
2178 WebEngine libraries. The bindings sit on top of PyQt5 and are implemented as a
2179 set of three modules. Prior to v5.12 these bindings were part of PyQt
2181 (license license:gpl3)))
2183 ;; XXX: This is useful because qtwebkit does not build reliably at this time.
2184 ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-*
2185 ;; packages that could be used together.
2186 (define-public python-pyqt-without-qtwebkit
2187 (package (inherit python-pyqt)
2188 (name "python-pyqt-without-qtwebkit")
2190 (alist-delete "qtwebkit" (package-inputs python-pyqt)))))
2192 (define-public python2-pyqt
2193 (package (inherit python-pyqt)
2194 (name "python2-pyqt")
2196 `(("python-enum34" ,python2-enum34)
2197 ("python-sip" ,python2-sip)))
2199 `(("python-sip" ,python2-sip)
2200 ("qtbase" ,qtbase)))
2202 `(("python" ,python-2)
2203 ("python2-enum34" ,python2-enum34)
2204 ,@(alist-delete "python" (package-inputs python-pyqt))))))
2206 (define-public python2-pyqtwebengine
2208 python-pyqtwebengine
2209 (name "python2-pyqtwebengine")
2211 `(("python" ,python-2)
2212 ("python-sip" ,python2-sip)
2213 ;; qtbase is required for qmake
2214 ("qtbase" ,qtbase)))
2216 `(("python" ,python-2)
2217 ("python-sip" ,python2-sip)
2218 ("python-pyqt" ,python2-pyqt)
2221 ("qtdeclarative" ,qtdeclarative)
2222 ("qtwebchannel" ,qtwebchannel)
2223 ("qtwebengine" ,qtwebengine)))))
2225 (define-public python2-pyqt-4
2226 (package (inherit python-pyqt)
2227 (name "python2-pyqt")
2233 (string-append "mirror://sourceforge/pyqt/PyQt4/"
2234 "PyQt-" version "/PyQt4_gpl_x11-"
2238 "0wnlasg62rm5d39nq1yw4namcx2ivxgzl93r5f2vb9s0yaz5l3x0"))))
2240 `(("python-sip" ,python2-sip)
2242 (inputs `(("python" ,python-2)))
2244 `(#:tests? #f ; no check target
2245 #:modules ((srfi srfi-1)
2246 ,@%gnu-build-system-modules)
2248 (modify-phases %standard-phases
2250 (lambda* (#:key inputs outputs #:allow-other-keys)
2251 (let* ((out (assoc-ref outputs "out"))
2252 (bin (string-append out "/bin"))
2253 (sip (string-append out "/share/sip"))
2254 (python (assoc-ref inputs "python"))
2256 (last (string-split python #\-)))
2259 (take (string-split python-version #\.) 2)
2261 (lib (string-append out "/lib/python"
2264 (invoke "python" "configure.py"
2268 "--sipdir" sip)))))))
2269 (license (list license:gpl2 license:gpl3)))) ; choice of either license
2271 (define-public python-qtpy
2273 (name "python-qtpy")
2278 (uri (pypi-uri "QtPy" version))
2281 "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd"))))
2282 (build-system python-build-system)
2284 `(("python-pyside2" ,python-pyside-2)))
2286 `(;; Not all supported bindings are packaged. Especially PyQt4.
2288 (home-page "https://github.com/spyder-ide/qtpy")
2290 "Qt bindings (PyQt5, PyQt4 and PySide) and additional custom QWidgets")
2292 "Provides an abstraction layer on top of the various Qt bindings
2293 (PyQt5, PyQt4 and PySide) and additional custom QWidgets.")
2294 (license license:expat)))
2296 (define-public qscintilla
2302 (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/"
2303 "QScintilla-" version "/QScintilla_gpl-"
2307 "1swjr786w04r514pry9pn32ivza4il1cg35s60qy39cwc175pka6"))))
2308 (build-system gnu-build-system)
2311 (modify-phases %standard-phases
2313 (lambda* (#:key outputs #:allow-other-keys)
2314 (let ((out (assoc-ref outputs "out")))
2316 (substitute* "qscintilla.pro"
2317 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
2318 (string-append out "/lib"))
2319 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
2320 (string-append out "/include"))
2321 (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]")
2322 (string-append out "/translations"))
2323 (("\\$\\$\\[QT_INSTALL_DATA\\]")
2324 (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))
2325 (("\\$\\$\\[QT_HOST_DATA\\]")
2326 (string-append out "/lib/qt$${QT_MAJOR_VERSION}")))
2327 (invoke "qmake")))))))
2328 (native-inputs `(("qtbase" ,qtbase)))
2329 (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro")
2330 (synopsis "Qt port of the Scintilla C++ editor control")
2331 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2332 editor control. QScintilla includes features especially useful when editing
2333 and debugging source code. These include support for syntax styling, error
2334 indicators, code completion and call tips.")
2335 (license license:gpl3+)))
2337 (define-public python-qscintilla
2338 (package (inherit qscintilla)
2339 (name "python-qscintilla")
2342 (list "--pyqt=PyQt5"
2343 (string-append "--pyqt-sipdir="
2344 (assoc-ref %build-inputs "python-pyqt")
2346 (string-append "--qsci-incdir="
2347 (assoc-ref %build-inputs "qscintilla")
2349 (string-append "--qsci-libdir="
2350 (assoc-ref %build-inputs "qscintilla")
2353 (modify-phases %standard-phases
2355 (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
2356 (let ((out (assoc-ref outputs "out"))
2357 (python (assoc-ref inputs "python")))
2359 (apply invoke "python3" "configure.py"
2361 ;; Install to the right directory
2362 (substitute* '("Makefile"
2364 (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") out)
2365 (((string-append python "/lib"))
2366 (string-append out "/lib")))
2367 ;; And fix the installed.txt file
2368 (substitute* "installed.txt"
2369 (("/gnu/store/[^/]+") out)))
2372 `(("qscintilla" ,qscintilla)
2374 ("python-pyqt" ,python-pyqt)))
2375 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2376 editor control. QScintilla includes features especially useful when editing
2377 and debugging source code. These include support for syntax styling, error
2378 indicators, code completion and call tips.
2380 This package provides the Python bindings.")))
2382 ;; PyQt only looks for modules in its own directory. It ignores environment
2383 ;; variables such as PYTHONPATH, so we need to build a union package to make
2385 (define-public python-pyqt+qscintilla
2386 (package (inherit python-pyqt)
2387 (name "python-pyqt+qscintilla")
2389 (build-system trivial-build-system)
2391 '(#:modules ((guix build union))
2393 (use-modules (ice-9 match)
2395 (match %build-inputs
2396 (((names . directories) ...)
2397 (union-build (assoc-ref %outputs "out")
2401 `(("python-pyqt" ,python-pyqt)
2402 ("python-qscintilla" ,python-qscintilla)))
2403 (synopsis "Union of PyQt and the Qscintilla extension")
2405 "This package contains the union of PyQt and the Qscintilla extension.")))
2407 (define-public qtkeychain
2415 (url "https://github.com/frankosterfeld/qtkeychain/")
2416 (commit (string-append "v" version))))
2417 (file-name (git-file-name name version))
2420 "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc"))))
2421 (build-system cmake-build-system)
2423 `(("pkg-config" ,pkg-config)
2424 ("qttools" ,qttools)))
2426 `(("qtbase" ,qtbase)))
2428 `(#:tests? #f ; No tests included
2430 (modify-phases %standard-phases
2431 (add-before 'configure 'set-qt-trans-dir
2433 (substitute* "CMakeLists.txt"
2434 (("\\$\\{qt_translations_dir\\}")
2435 "${CMAKE_INSTALL_PREFIX}/share/qt5/translations"))
2437 (home-page "https://github.com/frankosterfeld/qtkeychain")
2438 (synopsis "Qt API to store passwords")
2440 "QtKeychain is a Qt library to store passwords and other secret data
2441 securely. It will not store any data unencrypted unless explicitly requested.")
2442 (license license:bsd-3)))
2452 (string-append "mirror://sourceforge/qwt/qwt/"
2453 version "/qwt-" version ".tar.bz2"))
2455 (base32 "0hf0mpca248xlqn7xnzkfj8drf19gdyg5syzklvq8pibxiixwxj0"))))
2456 (build-system gnu-build-system)
2458 `(("qtbase" ,qtbase)
2460 ("qttools" ,qttools)))
2463 (modify-phases %standard-phases
2465 (lambda* (#:key outputs #:allow-other-keys)
2466 (let* ((out (assoc-ref outputs "out"))
2467 (docdir (string-append out "/share/doc/qwt"))
2468 (incdir (string-append out "/include/qwt"))
2469 (pluginsdir (string-append out "/lib/qt5/plugins/designer"))
2470 (featuresdir (string-append out "/lib/qt5/mkspecs/features")))
2471 (substitute* '("qwtconfig.pri")
2472 (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x)
2473 (format #f "~a = ~a\n" x out))
2474 (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x)
2475 (format #f "~a = ~a\n" x docdir))
2476 (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x)
2477 (format #f "~a = ~a\n" x incdir))
2478 (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x)
2479 (format #f "~a = ~a\n" x pluginsdir))
2480 (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x)
2481 (format #f "~a = ~a\n" x featuresdir)))
2482 (substitute* '("doc/doc.pro")
2483 ;; We'll install them in the 'install-man-pages' phase.
2484 (("^unix:doc\\.files.*") ""))
2486 (add-after 'install 'install-man-pages
2487 (lambda* (#:key outputs #:allow-other-keys)
2488 (let* ((out (assoc-ref outputs "out"))
2489 (man (string-append out "/share/man")))
2490 ;; Remove some incomplete manual pages.
2491 (for-each delete-file (find-files "doc/man/man3" "^_tmp.*"))
2493 (copy-recursively "doc/man" man)
2495 (home-page "http://qwt.sourceforge.net")
2496 (synopsis "Qt widgets for plots, scales, dials and other technical software
2499 "The Qwt library contains widgets and components which are primarily useful
2500 for technical and scientific purposes. It includes a 2-D plotting widget,
2501 different kinds of sliders, and much more.")
2504 ;; The Qwt license is LGPL2.1 with some exceptions.
2505 (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html")
2506 ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either).
2507 license:lgpl2.1 license:gpl3))))
2509 (define-public qtwebkit
2512 (version "5.212.0-alpha4")
2516 (uri (string-append "https://github.com/annulen/webkit/releases/download/"
2517 "qtwebkit-" version "/qtwebkit-" version ".tar.xz"))
2520 "1rm9sjkabxna67dl7myx9d9vpdyfxfdhrk9w7b94srkkjbd2d8cw"))
2521 (patches (search-patches "qtwebkit-pbutils-include.patch"))))
2522 (build-system cmake-build-system)
2530 ("pkg-config" ,pkg-config)))
2534 ("gst-plugins-base" ,gst-plugins-base)
2535 ("libjpeg" ,libjpeg-turbo)
2537 ("libwebp" ,libwebp)
2539 ("fontconfig" ,fontconfig)
2540 ("libxrender" ,libxrender)
2542 ("qtdeclarative" ,qtdeclarative)
2543 ("qtlocation" ,qtlocation)
2544 ("qtmultimedia" ,qtmultimedia)
2545 ("qtsensors" ,qtsensors)
2546 ("qtwebchannel" ,qtwebchannel)
2547 ("libxml2" ,libxml2)
2548 ("libxslt" ,libxslt)
2550 ("libxcomposite" ,libxcomposite)))
2552 `(#:tests? #f ; no apparent tests; it might be necessary to set
2553 ; ENABLE_API_TESTS, see CMakeLists.txt
2555 ;; Parallel builds fail due to a race condition:
2556 ;; <https://bugs.gnu.org/34062>.
2557 #:parallel-build? #f
2559 #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE"
2561 "-DUSE_LIBHYPHEN=OFF"
2562 "-DUSE_SYSTEM_MALLOC=ON"
2563 ;; XXX: relative dir installs to build dir?
2564 (string-append "-DECM_MKSPECS_INSTALL_DIR="
2565 %output "/lib/qt5/mkspecs/modules")
2566 ;; Sacrifice a little speed in order to link
2567 ;; libraries and test executables in a
2568 ;; reasonable amount of memory.
2569 "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
2570 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
2571 (home-page "https://www.webkit.org")
2572 (synopsis "Web browser engine and classes to render and interact with web
2574 (description "QtWebKit provides a Web browser engine that makes it easy to
2575 embed content from the World Wide Web into your Qt application. At the same
2576 time Web content can be enhanced with native controls.")
2577 ;; Building QtWebKit takes around 13 hours on an AArch64 machine. Give some
2578 ;; room for slower or busy hardware.
2579 (properties '((timeout . 64800))) ;18 hours
2581 ;; XXX: This consumes too much RAM to successfully build on AArch64 (e.g.,
2582 ;; SoftIron OverDrive with 8 GiB of RAM), so instead of wasting resources,
2583 ;; disable it on non-Intel platforms.
2584 (supported-systems '("x86_64-linux" "i686-linux"))
2586 (license license:lgpl2.1+)))
2588 (define-public dotherside
2596 (url "https://github.com/filcuc/DOtherSide")
2597 (commit (string-append "v" version))))
2598 (file-name (git-file-name name version))
2601 "09fz6v8rp28997f235yaifj8p4vvsyv45knc1iivgdvx7msgcd0m"))))
2602 (build-system cmake-build-system)
2604 `(("qttools" ,qttools)))
2606 `(("qtbase" ,qtbase)
2607 ("qtdeclarative" ,qtdeclarative)))
2608 (home-page "https://filcuc.github.io/DOtherSide/index.html")
2609 (synopsis "C language library for creating bindings for the Qt QML language")
2611 "DOtherSide is a C language library for creating bindings for the
2612 QT QML language. The following features are implementable from
2615 @item Creating custom QObject
2616 @item Creating custom QAbstractListModels
2617 @item Creating custom properties, signals and slots
2618 @item Creating from QML QObject defined in the binded language
2619 @item Creating from Singleton QML QObject defined in the binded language
2621 (license license:lgpl3))) ;version 3 only (+ exception)
2623 ;; There have been no public releases yet.
2624 (define-public qtcolorwidgets
2625 (let ((commit "a95f72e935fe9e046061a1d1c3930cbfbcb533e0")
2628 (name "qtcolorwidgets")
2629 (version (git-version "0" revision commit))
2633 (url "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2635 (file-name (git-file-name name version))
2638 "0dkiwlqh2gwhlp78c1fmchj3shl4p9inspcl96ya5aa8mn6kydy8"))))
2639 (build-system cmake-build-system)
2640 (arguments `(#:tests? #f)) ; There are no tests
2642 `(("qttools" ,qttools)))
2644 `(("qtbase" ,qtbase)))
2645 (home-page "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2646 (synopsis "Color management widgets")
2647 (description "QtColorWidgets provides a Qt color dialog that is more
2648 user-friendly than the default @code{QColorDialog} and several other
2649 color-related widgets.")
2650 ;; Includes a license exception for combining with GPL2 code.
2651 (license license:lgpl3+))))
2653 (define-public python-shiboken-2
2655 (name "python-shiboken-2")
2656 (version "5.14.2.3")
2659 (uri (string-append "https://download.qt.io/official_releases"
2660 "/QtForPython/pyside2/PySide2-" version
2661 "-src/pyside-setup-opensource-src-"
2665 "08lhqm0n3fjqpblcx9rshsp8g3bvf7yzbai5q99bly2wa04y6b83"))))
2666 (build-system cmake-build-system)
2668 `(("clang-toolchain" ,clang-toolchain)
2669 ("libxml2" ,libxml2)
2670 ("libxslt" ,libxslt)
2671 ("python-wrapper" ,python-wrapper)
2673 ("qtxmlpatterns" ,qtxmlpatterns)))
2676 ;; FIXME: Building tests fails
2677 #:configure-flags '("-DBUILD_TESTS=off")
2679 (modify-phases %standard-phases
2680 (add-after 'unpack 'use-shiboken-dir-only
2681 (lambda _ (chdir "sources/shiboken2") #t))
2682 (add-before 'configure 'make-files-writable-and-update-timestamps
2684 ;; The build scripts need to modify some files in
2685 ;; the read-only source directory, and also attempts
2686 ;; to create Zip files which fails because the Zip
2687 ;; format does not support timestamps before 1980.
2688 (let ((circa-1980 (* 10 366 24 60 60)))
2689 (for-each (lambda (file)
2690 (make-file-writable file)
2691 (utime file circa-1980 circa-1980))
2694 (add-before 'configure 'set-build-env
2695 (lambda* (#:key inputs #:allow-other-keys)
2696 (let ((llvm (assoc-ref inputs "clang-toolchain")))
2697 (setenv "CLANG_INSTALL_DIR" llvm)
2699 (home-page "https://wiki.qt.io/Qt_for_Python")
2701 "Shiboken generates bindings for C++ libraries using CPython source code")
2703 "Shiboken generates bindings for C++ libraries using CPython source code")
2706 ;; The main code is GPL3 or LGPL3.
2707 ;; Examples are BSD-3.
2712 (define-public python-pyside-2
2714 (name "python-pyside-2")
2715 (version (package-version python-shiboken-2))
2716 (source (package-source python-shiboken-2))
2717 (build-system cmake-build-system)
2719 `(("libxml2" ,libxml2)
2720 ("libxslt" ,libxslt)
2721 ("clang-toolchain" ,clang-toolchain)
2723 ("qtdatavis3d" ,qtdatavis3d)
2724 ("qtlocation" ,qtlocation)
2725 ("qtmultimedia" ,qtmultimedia)
2726 ("qtquickcontrols" ,qtquickcontrols)
2727 ("qtscript" ,qtscript)
2728 ("qtscxml" ,qtscxml)
2729 ("qtsensors" ,qtsensors)
2730 ("qtspeech" ,qtspeech)
2732 ("qtwebchannel" ,qtwebchannel)
2733 ("qtwebsockets" ,qtwebsockets)
2734 ("qtx11extras" ,qtx11extras)
2735 ("qtxmlpatterns" ,qtxmlpatterns)))
2737 `(("cmake" ,cmake-minimal)
2738 ("python-shiboken-2" ,python-shiboken-2)
2739 ("python" ,python-wrapper)
2740 ("qttools" ,qttools)
2744 ;; FIXME: Building tests fail.
2746 (list "-DBUILD_TESTS=FALSE"
2747 (string-append "-DPYTHON_EXECUTABLE="
2748 (assoc-ref %build-inputs "python")
2751 (modify-phases %standard-phases
2752 (add-after 'unpack 'go-to-source-dir
2753 (lambda _ (chdir "sources/pyside2") #t))
2754 (add-before 'configure 'set-clang-dir
2755 (lambda* (#:key inputs #:allow-other-keys)
2756 (let ((clang (assoc-ref inputs "clang-toolchain")))
2757 (setenv "CLANG_INSTALL_DIR" clang)
2759 (home-page "https://wiki.qt.io/Qt_for_Python")
2761 "The Qt for Python product enables the use of Qt5 APIs in Python applications")
2763 "The Qt for Python product enables the use of Qt5 APIs in Python
2764 applications. It lets Python developers utilize the full potential of Qt,
2765 using the PySide2 module. The PySide2 module provides access to the
2766 individual Qt modules such as QtCore, QtGui,and so on. Qt for Python also
2767 comes with the Shiboken2 CPython binding code generator, which can be used to
2768 generate Python bindings for your C or C++ code.")
2772 ;; this file may be used under the terms of the GNU General
2773 ;; Public License version 2.0 or (at your option) the GNU
2774 ;; General Public license version 3 or any later version
2775 ;; approved by the KDE Free Qt Foundation.
2776 ;; Thus, it is currently v2 or v3, but no "+".
2780 (define-public python-pyside-2-tools
2782 (name "python-pyside-2-tools")
2783 (version (package-version python-shiboken-2))
2784 (source (package-source python-shiboken-2))
2785 (build-system cmake-build-system)
2787 `(("python-pyside-2" ,python-pyside-2)
2788 ("python-shiboken-2" ,python-shiboken-2)
2789 ("qtbase" ,qtbase)))
2791 `(("python" ,python-wrapper)))
2795 (list "-DBUILD_TESTS=off"
2796 (string-append "-DPYTHON_EXECUTABLE="
2797 (assoc-ref %build-inputs "python")
2799 #:phases (modify-phases %standard-phases
2800 (add-after 'unpack 'go-to-source-dir
2801 (lambda _ (chdir "sources/pyside2-tools") #t)))))
2802 (home-page "https://wiki.qt.io/Qt_for_Python")
2804 "Contains command line tools for PySide2")
2806 "Contains lupdate, rcc and uic tools for PySide2")
2807 (license license:gpl2)))
2809 (define-public libqglviewer
2811 (name "libqglviewer")
2816 (string-append "http://libqglviewer.com/src/libQGLViewer-"
2820 "023w7da1fyn2z69nbkp2rndiv886zahmc5cmira79zswxjfpklp2"))))
2821 (build-system gnu-build-system)
2823 '(#:tests? #f ; no check target
2825 (list (string-append "PREFIX="
2826 (assoc-ref %outputs "out")))
2828 (modify-phases %standard-phases
2830 (lambda* (#:key make-flags #:allow-other-keys)
2831 (apply invoke (cons "qmake" make-flags)))))))
2833 `(("qtbase" ,qtbase)
2834 ("qttools" ,qttools)))
2837 (home-page "http://libqglviewer.com")
2838 (synopsis "Qt-based C++ library for the creation of OpenGL 3D viewers")
2840 "@code{libQGLViewer} is a C++ library based on Qt that eases the creation
2841 of OpenGL 3D viewers.
2843 It provides some of the typical 3D viewer functionalities, such as the
2844 possibility to move the camera using the mouse, which lacks in most of the
2845 other APIs. Other features include mouse manipulated frames, interpolated
2846 keyFrames, object selection, stereo display, screenshot saving and much more.
2847 It can be used by OpenGL beginners as well as to create complex applications,
2848 being fully customizable and easy to extend.")
2849 ;; According to LICENSE, either version 2 or version 3 of the GNU GPL may
2851 (license (list license:gpl2 license:gpl3))))