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, 2021 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>
23 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages qt)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (guix packages)
43 #:use-module (guix download)
44 #:use-module (guix git-download)
45 #:use-module (guix build-system cmake)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system trivial)
48 #:use-module (guix build-system python)
49 #:use-module (guix build-system qt)
50 #:use-module (guix packages)
51 #:use-module (guix deprecation)
52 #:use-module (guix utils)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages base)
55 #:use-module (gnu packages bison)
56 #:use-module (gnu packages cmake)
57 #:use-module (gnu packages compression)
58 #:use-module (gnu packages cups)
59 #:use-module (gnu packages curl)
60 #:use-module (gnu packages databases)
61 #:use-module (gnu packages documentation)
62 #:use-module (gnu packages enchant)
63 #:use-module (gnu packages fontutils)
64 #:use-module (gnu packages flex)
65 #:use-module (gnu packages freedesktop)
66 #:use-module (gnu packages gcc)
67 #:use-module (gnu packages ghostscript)
68 #:use-module (gnu packages gl)
69 #:use-module (gnu packages glib)
70 #:use-module (gnu packages gnupg)
71 #:use-module (gnu packages gperf)
72 #:use-module (gnu packages graphics)
73 #:use-module (gnu packages gstreamer)
74 #:use-module (gnu packages gtk)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages kde-frameworks)
78 #:use-module (gnu packages libevent)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages llvm)
81 #:use-module (gnu packages maths)
82 #:use-module (gnu packages networking)
83 #:use-module (gnu packages ninja)
84 #:use-module (gnu packages nss)
85 #:use-module (gnu packages pciutils)
86 #:use-module (gnu packages pcre)
87 #:use-module (gnu packages perl)
88 #:use-module (gnu packages pkg-config)
89 #:use-module (gnu packages pulseaudio)
90 #:use-module (gnu packages protobuf)
91 #:use-module (gnu packages python)
92 #:use-module (gnu packages python-build)
93 #:use-module (gnu packages python-xyz)
94 #:use-module (gnu packages regex)
95 #:use-module (gnu packages ruby)
96 #:use-module (gnu packages sdl)
97 #:use-module (gnu packages serialization)
98 #:use-module (gnu packages sqlite)
99 #:use-module (gnu packages telephony)
100 #:use-module (gnu packages tls)
101 #:use-module (gnu packages valgrind)
102 #:use-module (gnu packages video)
103 #:use-module (gnu packages vulkan)
104 #:use-module (gnu packages xdisorg)
105 #:use-module (gnu packages xiph)
106 #:use-module (gnu packages xorg)
107 #:use-module (gnu packages xml)
108 #:use-module (srfi srfi-1))
111 (let ((commit "75fb3b6bbd5c6a5a8fc35e08a6efbfb588ed546a")
115 (version (git-version "0" revision commit))
121 (url "https://github.com/Ri0n/qite")
123 (file-name (git-file-name name version))
125 (base32 "0jmmgy9pvk9hwwph1nwy7hxhczy8drhl4ymhnjjn6yx7bckssvsq"))))
126 (build-system qt-build-system)
128 `(#:tests? #f ; no target
130 (modify-phases %standard-phases
131 (add-after 'unpack 'chdir
137 ("qtmultimedia" ,qtmultimedia)))
138 (home-page "https://github.com/Ri0n/qite/")
139 (synopsis "Qt Interactive Text Elements")
140 (description "Qite allows to manage interactive elements on QTextEdit.")
141 (license license:asl2.0))))
151 (string-append "mirror://sourceforge/qt5ct/qt5ct-" version ".tar.bz2"))
153 (base32 "1lnx4wqk87lbr6lqc64w5g5ppjjv75kq2r0q0bz9gfpryzdw8xxg"))))
154 (build-system gnu-build-system)
156 `(#:tests? #f ; No target
158 (,@%gnu-build-system-modules
159 (guix build cmake-build-system)
160 (guix build qt-build-system))
162 ((guix build gnu-build-system)
163 ((guix build qt-build-system)
167 (modify-phases %standard-phases
168 (add-after 'unpack 'patch
169 (lambda* (#:key inputs #:allow-other-keys)
170 (substitute* "qt5ct.pro"
171 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
172 (string-append (assoc-ref inputs "qttools")
176 (lambda* (#:key outputs #:allow-other-keys)
177 (let* ((out (assoc-ref outputs "out")))
179 (string-append "PREFIX=" out)
180 (string-append "BINDIR=" out "/bin")
181 (string-append "DATADIR=" out "/share")
182 (string-append "PLUGINDIR=" out "/lib/qt5/plugins")))
184 (add-after 'install 'qt-wrap
185 (assoc-ref qt:%standard-phases 'qt-wrap)))))
187 `(("qttools" ,qttools)))
191 (synopsis "Qt5 Configuration Tool")
192 (description "Qt5CT is a program that allows users to configure Qt5
193 settings (such as icons, themes, and fonts) in desktop environments or
194 window managers, that don't provide Qt integration by themselves.")
195 (home-page "https://qt5ct.sourceforge.io/")
196 (license license:bsd-2)))
198 (define-public materialdecoration
199 (let ((commit "6a5de23f2e5162fbee39d16f938473ff970a2ec0")
202 (name "materialdecoration")
204 (git-version "1.1.0" revision commit))
210 (url "https://github.com/lirios/materialdecoration.git")
213 (git-file-name name version))
215 (base32 "1zdrcb39fhhmn76w8anv1dnspz26pdl6izmj1mlm02aza4y8ffp4"))
216 (modules '((guix build utils)
221 (delete-file-recursively "cmake/3rdparty")))))
222 (build-system qt-build-system)
224 `(#:tests? #f ; No target
227 (string-append "-DCMAKE_CXX_FLAGS=-I"
228 (assoc-ref %build-inputs "qtbase")
229 "/include/qt5/QtXkbCommonSupport/"
230 ,(package-version qtbase)))))
232 `(("cmake-shared" ,cmake-shared)
233 ("extra-cmake-modules" ,extra-cmake-modules)
234 ("pkg-config" ,pkg-config)))
237 ("qtwayland" ,qtwayland)
239 ("xkbcommon" ,libxkbcommon)))
240 (synopsis "Material Decoration for Qt")
241 (description "MaterialDecoration is a client-side decoration for Qt
242 applications on Wayland.")
243 (home-page "https://github.com/lirios/materialdecoration")
244 (license license:lgpl3+))))
246 (define-public grantlee
254 (url "https://github.com/steveire/grantlee")
255 (commit (string-append "v" version))))
256 (file-name (git-file-name name version))
258 (base32 "02dyqxjyxiqxrlz5g7v9ly8f095vs3iha39l75q6s8axs36y01lq"))))
260 ;; Optional: lcov and cccc, both are for code coverage
261 `(("doxygen" ,doxygen)))
264 ("qtdeclarative" ,qtdeclarative)
265 ("qtscript" ,qtscript)))
266 (build-system cmake-build-system)
269 (modify-phases %standard-phases
270 (add-before 'check 'check-setup
272 ;; make Qt render "offscreen", required for tests
273 (setenv "QT_QPA_PLATFORM" "offscreen")
275 (home-page "https://github.com/steveire/grantlee")
276 (synopsis "Libraries for text templating with Qt")
277 (description "Grantlee Templates can be used for theming and generation of
278 other text such as code. The syntax uses the syntax of the Django template
279 system, and the core design of Django is reused in Grantlee.")
280 (license license:lgpl2.1+)))
282 (define (qt5-urls component version)
283 "Return a list of URLs for VERSION of the Qt5 COMPONENT."
284 ;; We can't use a mirror:// scheme because these URLs are not exact copies:
285 ;; the layout differs between them.
286 (list (string-append "https://download.qt.io/official_releases/qt/"
287 (version-major+minor version) "/" version
288 "/submodules/" component "-everywhere-src-"
290 (string-append "https://download.qt.io/archive/qt/"
291 (version-major+minor version) "/" version
292 "/submodules/" component "-everywhere-src-"
294 (let ((directory (string-append "qt5" (string-drop component 2))))
295 (string-append "http://sources.buildroot.net/" directory "/"
296 component "-everywhere-src-" version ".tar.xz"))
297 (string-append "https://distfiles.macports.org/qt5/"
298 component "-everywhere-src-" version ".tar.xz")))
300 (define-public qtbase
306 (uri (qt5-urls name version))
309 "1y70libf2x52lpbqvhz10lpk7nyl1ajjwzjxly9pjdpfj4jsv7wh"))
310 ;; Use TZDIR to avoid depending on package "tzdata".
311 (patches (search-patches "qtbase-use-TZDIR.patch"
312 "qtbase-moc-ignore-gcc-macro.patch"
313 "qtbase-absolute-runpath.patch"))
314 (modules '((guix build utils)))
316 ;; corelib uses bundled harfbuzz, md4, md5, sha3
318 (with-directory-excursion "src/3rdparty"
319 (for-each delete-file-recursively
320 (list "double-conversion" "freetype" "harfbuzz-ng"
321 "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
324 (build-system gnu-build-system)
325 (outputs '("out" "debug"))
328 ;; Use which the package, not the function
329 ("which" ,(@ (gnu packages base) which))))
331 `(("alsa-lib" ,alsa-lib)
334 ("double-conversion" ,double-conversion)
337 ("fontconfig" ,fontconfig)
338 ("freetype" ,freetype)
340 ("harfbuzz" ,harfbuzz)
342 ("libinput" ,libinput-minimal)
343 ("libjpeg" ,libjpeg-turbo)
347 ("libxcomposite" ,libxcomposite)
348 ("libxcursor" ,libxcursor)
349 ("libxfixes" ,libxfixes)
351 ("libxinerama" ,libxinerama)
352 ("libxkbcommon" ,libxkbcommon)
354 ("libxrandr" ,libxrandr)
355 ("libxrender" ,libxrender)
359 ("mariadb-dev" ,mariadb "dev")
363 ("postgresql" ,postgresql)
364 ("pulseaudio" ,pulseaudio)
366 ("unixodbc" ,unixodbc)
367 ("xcb-util" ,xcb-util)
368 ("xcb-util-image" ,xcb-util-image)
369 ("xcb-util-keysyms" ,xcb-util-keysyms)
370 ("xcb-util-renderutil" ,xcb-util-renderutil)
371 ("xcb-util-wm" ,xcb-util-wm)
372 ("xdg-utils" ,xdg-utils)
379 ("pkg-config" ,pkg-config)
381 ("vulkan-headers" ,vulkan-headers)
385 (modify-phases %standard-phases
386 (add-after 'configure 'patch-bin-sh
388 (substitute* '("config.status"
390 "mkspecs/features/qt_functions.prf"
391 "qmake/library/qmakebuiltins.cpp")
392 (("/bin/sh") (which "sh")))
394 (add-after 'configure 'patch-xdg-open
396 (substitute* '("src/platformsupport/services/genericunix/qgenericunixservices.cpp")
397 (("^.*const char \\*browsers.*$" all)
398 (string-append "*browser = QStringLiteral(\""
400 "\"); return true; \n" all)))
403 (lambda* (#:key outputs #:allow-other-keys)
404 (let ((out (assoc-ref outputs "out")))
405 (substitute* "configure"
406 (("/bin/pwd") (which "pwd")))
407 (substitute* "src/corelib/global/global.pri"
408 (("/bin/ls") (which "ls")))
409 ;; The configuration files for other Qt5 packages are searched
410 ;; through a call to "find_package" in Qt5Config.cmake, which
411 ;; disables the use of CMAKE_PREFIX_PATH via the parameter
412 ;; "NO_DEFAULT_PATH". Re-enable it so that the different
413 ;; components can be installed in different places.
414 (substitute* (find-files "." ".*\\.cmake")
415 (("NO_DEFAULT_PATH") ""))
416 ;; do not pass "--enable-fast-install", which makes the
417 ;; configure process fail
422 "-docdir" (string-append out "/share/doc/qt5")
423 "-headerdir" (string-append out "/include/qt5")
424 "-archdatadir" (string-append out "/lib/qt5")
425 "-datadir" (string-append out "/share/qt5")
426 "-examplesdir" (string-append
427 out "/share/doc/qt5/examples")
431 ;; Later stripped into the :debug output.
434 ;; These features require higher versions of Linux than the
435 ;; minimum version of the glibc. See
436 ;; src/corelib/global/minimum-linux_p.h. By disabling these
437 ;; features Qt5 applications can be used on the oldest
438 ;; kernels that the glibc supports, including the RHEL6
439 ;; (2.6.32) and RHEL7 (3.10) kernels.
440 "-no-feature-getentropy" ; requires Linux 3.17
441 "-no-feature-renameat2" ; requires Linux 3.16
443 ;; Do not build examples; if desired, these could go
444 ;; into a separate output, but for the time being, we
445 ;; prefer to save the space and build time.
446 "-no-compile-examples"
447 ;; Most "-system-..." are automatic, but some use
448 ;; the bundled copy by default.
452 ;; explicitly link with openssl instead of dlopening it
454 ;; explicitly link with dbus instead of dlopening it
456 ;; don't use the precompiled headers
458 ;; drop special machine instructions that do not have
460 ,@(if (string-prefix? "x86_64"
461 (or (%current-target-system)
467 (add-after 'install 'patch-mkspecs
468 (lambda* (#:key outputs #:allow-other-keys)
469 (let* ((out (assoc-ref outputs "out"))
470 (archdata (string-append out "/lib/qt5"))
471 (mkspecs (string-append archdata "/mkspecs"))
472 (qt_config.prf (string-append
473 mkspecs "/features/qt_config.prf")))
474 ;; For each Qt module, let `qmake' uses search paths in the
475 ;; module directory instead of all in QT_INSTALL_PREFIX.
476 (substitute* qt_config.prf
477 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
478 "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))")
479 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
480 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
481 (("\\$\\$\\[QT_HOST_LIBS\\]")
482 "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))")
483 (("\\$\\$\\[QT_INSTALL_BINS\\]")
484 "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))"))
486 ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS.
487 (substitute* (string-append mkspecs "/features/qt_functions.prf")
488 (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2")
489 "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})"))
491 ;; Resolve qmake spec files within qtbase by absolute paths.
494 (string-append mkspecs "/features/" file))
495 '("device_config.prf" "moc.prf" "qt_build_config.prf"
496 "qt_config.prf" "winrt/package_manifest.prf"))
497 (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata)
498 (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))
500 (add-after 'patch-mkspecs 'patch-prl-files
501 (lambda* (#:key outputs #:allow-other-keys)
502 (let ((out (assoc-ref outputs "out")))
503 ;; Insert absolute references to the qtbase libraries because
504 ;; QT_INSTALL_LIBS does not always resolve correctly, depending
505 ;; on context. See <https://bugs.gnu.org/38405>
506 (substitute* (find-files (string-append out "/lib") "\\.prl$")
507 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
508 (string-append out "/lib")))
510 (add-after 'unpack 'patch-paths
511 ;; Use the absolute paths for dynamically loaded libs, otherwise
512 ;; the lib will be searched in LD_LIBRARY_PATH which typically is
514 (lambda* (#:key inputs #:allow-other-keys)
516 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
517 "cross-libc" "libc"))))
518 (substitute* '("src/network/kernel/qdnslookup_unix.cpp"
519 "src/network/kernel/qhostinfo_unix.cpp")
520 (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b)
521 (string-append a glibc "/lib/lib" b))))
523 (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp"
524 (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b)
525 (string-append a (assoc-ref inputs "mesa") "/lib/lib" b)))
527 (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp"
528 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b)
529 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))
530 (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b)
531 (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))
534 (list (search-path-specification
535 (variable "QMAKEPATH")
536 (files '("lib/qt5")))
537 (search-path-specification
538 (variable "QML2_IMPORT_PATH")
539 (files '("lib/qt5/qml")))
540 (search-path-specification
541 (variable "QT_PLUGIN_PATH")
542 (files '("lib/qt5/plugins")))
543 (search-path-specification
544 (variable "XDG_DATA_DIRS")
546 (search-path-specification
547 (variable "XDG_CONFIG_DIRS")
548 (files '("etc/xdg")))))
549 (home-page "https://www.qt.io/")
550 (synopsis "Cross-platform GUI library")
551 (description "Qt is a cross-platform application and UI framework for
552 developers using C++ or QML, a CSS & JavaScript like language.")
553 (license (list license:lgpl2.1 license:lgpl3))))
555 ;; qt used to refer to the monolithic Qt 5.x package
556 (define-deprecated qt qtbase)
559 (package (inherit qtbase)
564 (uri (qt5-urls name version))
567 "0pjqrdmd1991x9h4rl8sf81pkd89hfd5h1a2gp3fjw96pk0w5hwb"))))
568 (propagated-inputs `())
569 (native-inputs `(("perl" ,perl)))
576 (modify-phases %standard-phases
577 (add-before 'configure 'configure-qmake
578 (lambda* (#:key inputs outputs #:allow-other-keys)
579 (let* ((out (assoc-ref outputs "out"))
580 (qtbase (assoc-ref inputs "qtbase"))
581 (tmpdir (string-append (getenv "TMPDIR")))
582 (qmake (string-append tmpdir "/qmake"))
583 (qt.conf (string-append tmpdir "/qt.conf")))
584 ;; Use qmake with a customized qt.conf to override install
586 (symlink (which "qmake") qmake)
587 (setenv "PATH" (string-append tmpdir ":" (getenv "PATH")))
588 (with-output-to-file qt.conf
594 Documentation=share/doc/qt5
597 LibraryExecutables=lib/qt5/libexec
600 Plugins=lib/qt5/plugins
601 Imports=lib/qt5/imports
602 Qml2Imports=lib/qt5/qml
603 Translations=share/qt5/translations
605 Examples=share/doc/qt5/examples
611 [EffectiveSourcePaths]
617 (lambda* (#:key inputs outputs #:allow-other-keys)
618 ;; Valid QT_BUILD_PARTS variables are:
619 ;; libs tools tests examples demos docs translations
620 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests")))
621 (add-before 'check 'set-display
623 ;; make Qt render "offscreen", required for tests
624 (setenv "QT_QPA_PLATFORM" "offscreen")
626 (synopsis "Qt module for displaying SVGs")
627 (description "The QtSvg module provides classes for displaying the
628 contents of SVG files.")))
630 (define-public qtimageformats
631 (package (inherit qtsvg)
632 (name "qtimageformats")
636 (uri (qt5-urls name version))
639 "1msk8a0z8rr16hkp2fnv668vf6wayiydqgc2mcklaa04rv3qb0mz"))
640 (modules '((guix build utils)))
643 (delete-file-recursively "src/3rdparty")
646 (substitute-keyword-arguments (package-arguments qtsvg)
648 `(modify-phases ,phases
649 (add-after 'unpack 'fix-build
651 (substitute* "src/plugins/imageformats/jp2/qjp2handler.cpp"
652 (("^#include <jasper/jasper.h>")
653 "#include <jasper/jasper.h>\n#include <QtCore/qmath.h>"))
664 (synopsis "Additional Image Format plugins for Qt")
665 (description "The QtImageFormats module contains plugins for adding
666 support for MNG, TGA, TIFF and WBMP image formats.")))
668 (define-public qtx11extras
669 (package (inherit qtsvg)
674 (uri (qt5-urls name version))
677 "0gkfzj195v9flwljnqpdz3a532618yn4h2577nlsai56x4p7053h"))))
679 (substitute-keyword-arguments (package-arguments qtsvg)
680 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
681 (native-inputs `(("perl" ,perl)))
685 (synopsis "Qt Extras for X11")
686 (description "The QtX11Extras module includes the library to access X11
687 from within Qt 5.")))
689 (define-public qtxmlpatterns
690 (package (inherit qtsvg)
691 (name "qtxmlpatterns")
695 (uri (qt5-urls name version))
698 "1ypj5jpa31rlx8yfw3y9jia212lfnxvnqkvygs6ihjf3lxi23skn"))))
700 (substitute-keyword-arguments (package-arguments qtsvg)
701 ((#:tests? _ #f) #f) ; TODO: Enable the tests
703 `(modify-phases ,phases
704 (add-after 'unpack 'disable-network-tests
705 (lambda _ (substitute* "tests/auto/auto.pro"
706 (("qxmlquery") "# qxmlquery")
707 (("xmlpatterns ") "# xmlpatterns"))
709 (native-inputs `(("perl" ,perl)
710 ("qtdeclarative" ,qtdeclarative)))
711 (inputs `(("qtbase" ,qtbase)))
712 (synopsis "Qt XML patterns module")
713 (description "The QtXmlPatterns module is a XQuery and XPath engine for
714 XML and custom data models. It contains programs such as xmlpatterns and
715 xmlpatternsvalidator.")))
717 (define-public qtdeclarative
718 (package (inherit qtsvg)
719 (name "qtdeclarative")
723 (uri (qt5-urls name version))
726 "0lancdn7y0lrlmyn5cbdm0izd5yprvd5n77nhkb7a3wl2sbx0066"))))
728 (substitute-keyword-arguments (package-arguments qtsvg)
729 ((#:tests? _ #f) #f) ;TODO: Enable the tests
731 `(modify-phases ,phases
732 (add-after 'build 'fix-qt5core-install-prefix
733 (lambda* (#:key outputs #:allow-other-keys)
734 (let ((out (assoc-ref outputs "out")))
735 ;; The Qt5Core install prefix is set to qtbase, but qmlcachegen
736 ;; is provided by qtdeclarative.
738 "lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake"
739 (("\\$\\{_qt5Core_install_prefix\\}") out)))
743 ("pkg-config" ,pkg-config)
745 ("python-wrapper" ,python-wrapper)
747 ("vulkan-headers" ,vulkan-headers)))
751 (synopsis "Qt QML module (Quick 2)")
752 (description "The Qt QML module provides a framework for developing
753 applications and libraries with the QML language. It defines and implements the
754 language and engine infrastructure, and provides an API to enable application
755 developers to extend the QML language with custom types and integrate QML code
756 with JavaScript and C++.")))
758 (define-public qtconnectivity
759 (package (inherit qtsvg)
760 (name "qtconnectivity")
764 (uri (qt5-urls name version))
767 "185zci61ip1wpjrygcw2m6v55lvninc0b8y2p3jh6qgpf5w35003"))))
770 ("pkg-config" ,pkg-config)
771 ("qtdeclarative" ,qtdeclarative)))
775 (synopsis "Qt Connectivity module")
776 (description "The Qt Connectivity modules provides modules for interacting
777 with Bluetooth and NFC.")))
779 (define-public qtwebsockets
780 (package (inherit qtsvg)
781 (name "qtwebsockets")
785 (uri (qt5-urls name version))
788 "0gr399fn5n8j3m9d3vv01vcbr1cb7pw043j04cnnxzrlvn2jvd50"))))
790 (substitute-keyword-arguments (package-arguments qtsvg)
791 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
794 ("qtdeclarative" ,qtdeclarative)))
795 (inputs `(("qtbase" ,qtbase)))
796 (synopsis "Qt Web Sockets module")
797 (description "WebSocket is a web-based protocol designed to enable two-way
798 communication between a client application and a remote host. The Qt
799 WebSockets module provides C++ and QML interfaces that enable Qt applications
800 to act as a server that can process WebSocket requests, or a client that can
801 consume data received from the server, or both.")))
803 (define-public qtsensors
804 (package (inherit qtsvg)
809 (uri (qt5-urls name version))
812 "0fa81r7bn1mf9ynwsx524a55dx1q0jb4vda6j48ssb4lx7wi201z"))))
814 (substitute-keyword-arguments (package-arguments qtsvg)
815 ((#:parallel-tests? _ #f) #f) ; can lead to race condition
817 `(modify-phases ,phases
818 (add-after 'unpack 'fix-tests
820 (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp"
821 (("2000") "5000") ;lengthen test timeout
822 (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test
826 ("qtdeclarative" ,qtdeclarative)))
827 (inputs `(("qtbase" ,qtbase)))
828 (synopsis "Qt Sensors module")
829 (description "The Qt Sensors API provides access to sensor hardware via QML
830 and C++ interfaces. The Qt Sensors API also provides a motion gesture
831 recognition API for devices.")))
833 (define-public qtmultimedia
834 (package (inherit qtsvg)
835 (name "qtmultimedia")
839 (uri (qt5-urls name version))
842 "1xbd6kc7i0iablqdkvfrajpi32cbq7j6ajbfyyyalcai1s0mhdqc"))
843 (modules '((guix build utils)))
846 (delete-file-recursively
847 "examples/multimedia/spectrum/3rdparty")
848 ;; We also prevent the spectrum example from being built.
849 (substitute* "examples/multimedia/multimedia.pro"
853 (substitute-keyword-arguments (package-arguments qtsvg)
855 `(modify-phases ,phases
857 (lambda* (#:key outputs #:allow-other-keys)
858 (let ((out (assoc-ref outputs "out")))
859 (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"
860 (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,")
861 (string-append "PREFIX=" out)))))))
862 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
865 ("pkg-config" ,pkg-config)
867 ("qtdeclarative" ,qtdeclarative)))
869 `(("alsa-lib" ,alsa-lib)
871 ("pulseaudio" ,pulseaudio)
873 ;; Gstreamer is needed for the mediaplayer plugin
874 ("gstreamer" ,gstreamer)
875 ("gst-plugins-base" ,gst-plugins-base)))
876 (synopsis "Qt Multimedia module")
877 (description "The Qt Multimedia module provides set of APIs to play and
878 record media, and manage a collection of media content. It also contains a
879 set of plugins for interacting with pulseaudio and GStreamer.")))
881 (define-public qtwayland
882 (package (inherit qtsvg)
887 (uri (qt5-urls name version))
890 "1ddfx4nak16xx0zh1kl836zxvpbixmmjyplsmfmg65pqkwi34dqr"))))
892 (substitute-keyword-arguments (package-arguments qtsvg)
894 `(modify-phases ,phases
895 (add-after 'unpack 'disable-failing-tests
897 ;; FIXME: tst_seatv4::animatedCursor() fails for no good
898 ;; reason and breaks these two tests.
899 (substitute* "tests/auto/client/seatv4/tst_seatv4.cpp"
900 (((string-append "QVERIFY\\(!cursorSurface\\(\\)->"
901 "m_waitingFrameCallbacks\\.empty\\(\\)\\);"))
903 (("QTRY_COMPARE\\(bufferSpy\\.count\\(\\), 1\\);")
906 (add-before 'check 'set-test-environment
908 ;; Do not fail just because /etc/machine-id is missing.
909 (setenv "DBUS_FATAL_WARNINGS" "0")
914 ("pkg-config" ,pkg-config)
915 ("qtdeclarative" ,qtdeclarative)))
917 `(("fontconfig" ,fontconfig)
918 ("freetype" ,freetype)
920 ("libxcomposite" ,libxcomposite)
922 ("libxkbcommon" ,libxkbcommon)
923 ("libxrender" ,libxrender)
927 ("vulkan-headers" ,vulkan-headers)
928 ("wayland" ,wayland)))
929 (synopsis "Qt Wayland module")
930 (description "The Qt Wayland module provides the QtWayland client and
931 compositor libraries.")))
933 (define-public qtserialport
934 (package (inherit qtsvg)
935 (name "qtserialport")
939 (uri (qt5-urls name version))
942 "17gp5qzg4wdg8qlxk2p3mh8x1vk33rf33wic3fy0cws193bmkiar"))))
943 (native-inputs `(("perl" ,perl)))
948 (substitute-keyword-arguments (package-arguments qtsvg)
950 `(modify-phases ,phases
951 (add-after 'unpack 'patch-dlopen-paths
952 (lambda* (#:key inputs #:allow-other-keys)
953 (substitute* "src/serialport/qtudev_p.h"
954 ;; Use the absolute paths for dynamically loaded libs,
955 ;; otherwise the lib will be searched in LD_LIBRARY_PATH which
956 ;; typically is not set in guix.
957 (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b)
958 (string-append a (assoc-ref inputs "eudev") "/lib/lib" b)))
960 (synopsis "Qt Serial Port module")
961 (description "The Qt Serial Port module provides the library for
962 interacting with serial ports from within Qt.")))
964 (define-public qtserialbus
965 (package (inherit qtsvg)
970 (uri (qt5-urls name version))
973 "125x6756fjpldqy6wbw6cg7ngjh2016aiq92bchh719z1mf7xsxf"))))
975 (substitute-keyword-arguments (package-arguments qtsvg)
976 ((#:phases phases '%standard-phases)
977 `(modify-phases ,phases
978 (add-after 'unpack 'patch-libsocketcan-reference
979 (lambda* (#:key inputs #:allow-other-keys)
980 (let* ((libcansocket (assoc-ref inputs "libsocketcan"))
981 (libcansocket.so (string-append libcansocket
982 "/lib/libsocketcan.so")))
983 (substitute* "src/plugins/canbus/socketcan/libsocketcan.cpp"
984 (("QStringLiteral\\(\"socketcan\"\\)")
985 (format #f "QStringLiteral(~s)" libcansocket.so)))
988 `(("libsocketcan" ,libsocketcan)
990 ("qtserialport" ,qtserialport)))
991 (synopsis "Qt Serial Bus module")
992 (description "The Qt Serial Bus API provides classes and functions to
993 access the various industrial serial buses and protocols, such as CAN, ModBus,
996 (define-public qtwebchannel
997 (package (inherit qtsvg)
998 (name "qtwebchannel")
1002 (uri (qt5-urls name version))
1005 "1h9y634phvvk557mhmf9z4lmxr41rl8x9mqy2lzp31mk8ffffzqj"))))
1008 ("qtdeclarative" ,qtdeclarative)
1009 ("qtwebsockets" ,qtwebsockets)))
1010 (inputs `(("qtbase" ,qtbase)))
1011 (synopsis "Web communication library for Qt")
1012 (description "The Qt WebChannel module enables peer-to-peer communication
1013 between the host (QML/C++ application) and the client (HTML/JavaScript
1014 application). The transport mechanism is supported out of the box by the two
1015 popular web engines, Qt WebKit 2 and Qt WebEngine.")))
1017 (define-public qtwebglplugin
1018 (package (inherit qtsvg)
1019 (name "qtwebglplugin")
1023 (uri (qt5-urls name version))
1026 "0ihlnhv8ldkqz82v3j7j22lrhk17b6ghra8sx85y2agd2ysq5rw1"))))
1028 (substitute-keyword-arguments (package-arguments qtsvg)
1030 `(modify-phases ,phases
1031 (add-after 'unpack 'disable-network-tests
1032 (lambda _ (substitute* "tests/plugins/platforms/platforms.pro"
1033 (("webgl") "# webgl"))
1039 ("qtdeclarative" ,qtdeclarative)
1040 ("qtwebsockets" ,qtwebsockets)
1042 (synopsis "QPA plugin for running an application via a browser using
1043 streamed WebGL commands")
1044 (description "Qt back end that uses WebGL for rendering. It allows Qt
1045 applications (with some limitations) to run in a web browser that supports
1046 WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
1047 compatible web browser without the use of plug-ins. The API is similar to
1048 OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
1050 (define-public qtwebview
1051 (package (inherit qtsvg)
1056 (uri (qt5-urls name version))
1059 "1rw1wibmbxlj6xc86qs3y8h42al1vczqiksyxzaylxs9gqb4d7xy"))))
1063 `(("qtbase" ,qtbase)
1064 ("qtdeclarative" ,qtdeclarative)))
1065 (synopsis "Display web content in a QML application")
1066 (description "Qt WebView provides a way to display web content in a QML
1067 application without necessarily including a full web browser stack by using
1068 native APIs where it makes sense.")))
1070 (define-public qtlocation
1071 (package (inherit qtsvg)
1076 (uri (string-append "https://download.qt.io/official_releases/qt/"
1077 (version-major+minor version) "/" version
1078 "/submodules/" name "-everywhere-src-"
1082 "184jychnlfhplpwc5cdcsapwljgwvzk5qpf3val4kpq8w44wnkwq"))))
1084 (substitute-keyword-arguments (package-arguments qtsvg)
1085 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1088 ("qtdeclarative" ,qtdeclarative)
1089 ("qtquickcontrols" ,qtquickcontrols)
1090 ("qtserialport" ,qtserialport)))
1093 ("openssl" ,openssl)
1096 (synopsis "Qt Location and Positioning modules")
1097 (description "The Qt Location module provides an interface for location,
1098 positioning and geolocation plugins.")))
1100 (define-public qttools
1101 (package (inherit qtsvg)
1106 (uri (qt5-urls name version))
1109 "1k618f7v6jaj0ygy8d7jvgb8zjr47sn55kiskbdkkizp3z7d12f1"))))
1111 (substitute-keyword-arguments (package-arguments qtsvg)
1112 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1115 ("qtdeclarative" ,qtdeclarative)
1116 ("vulkan-headers" ,vulkan-headers)))
1119 ("qtbase" ,qtbase)))
1120 (synopsis "Qt Tools and Designer modules")
1121 (description "The Qt Tools module provides a set of applications to browse
1122 the documentation, translate applications, generate help files and other stuff
1123 that helps in Qt development.")))
1125 (define-public qtscript
1126 (package (inherit qtsvg)
1131 (uri (qt5-urls name version))
1134 "0gk74hk488k9ldacxbxcranr3arf8ifqg8kz9nm1rgdgd59p36d2"))
1135 (patches (search-patches "qtscript-disable-tests.patch"))))
1138 ("qttools" ,qttools)))
1140 `(("qtbase" ,qtbase)))
1141 (synopsis "Qt Script module")
1142 (description "Qt provides support for application scripting with ECMAScript.
1143 The following guides and references cover aspects of programming with
1144 ECMAScript and Qt.")))
1146 (define-public qtquickcontrols
1147 (package (inherit qtsvg)
1148 (name "qtquickcontrols")
1152 (uri (qt5-urls name version))
1155 "1dczakl868mg0lnwpf082jjc5976ycn879li1vqlgw5ihirzp4y3"))))
1157 (substitute-keyword-arguments (package-arguments qtsvg)
1158 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1160 `(("qtbase" ,qtbase)
1161 ("qtdeclarative" ,qtdeclarative)))
1162 (synopsis "Qt Quick Controls and other Quick modules")
1163 (description "The QtScript module provides classes for making Qt
1164 applications scriptable. This module provides a set of extra components that
1165 can be used to build complete interfaces in Qt Quick.")))
1167 (define-public qtquickcontrols2
1168 (package (inherit qtsvg)
1169 (name "qtquickcontrols2")
1173 (uri (qt5-urls name version))
1176 "06c9vrwvbjmzapmfa25y34lgjkzg57xxbm92nr6wkv5qykjnq6v7"))))
1178 (substitute-keyword-arguments (package-arguments qtsvg)
1179 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1181 `(("qtbase" ,qtbase)
1182 ("qtdeclarative" ,qtdeclarative)))
1183 (synopsis "Qt Quick Controls 2 and other Quick 2 modules")
1184 (description "The Qt Quick Controls 2 module contains the Qt Labs Platform
1185 module that provides platform integration: native dialogs, menus and menu bars,
1186 and tray icons. It falls back to Qt Widgets when a native implementation is
1189 (define-public qtgraphicaleffects
1190 (package (inherit qtsvg)
1191 (name "qtgraphicaleffects")
1195 (uri (qt5-urls name version))
1198 "1r6zfc0qga2ax155js7c8y5rx6vgayf582s921j09mb797v6g3gc"))))
1200 (substitute-keyword-arguments (package-arguments qtsvg)
1201 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1203 `(("qtbase" ,qtbase)
1204 ("qtdeclarative" ,qtdeclarative)))
1205 (synopsis "Qt Graphical Effects module")
1206 (description "The Qt Graphical Effects module provides a set of QML types
1207 for adding visually impressive and configurable effects to user interfaces.
1208 Effects are visual items that can be added to Qt Quick user interface as UI
1209 components. The API consists of over 20 effects provided as separate QML
1210 types. The effects cover functional areas such as blending, masking, blurring,
1211 coloring, and many more.")))
1213 (define-public qtgamepad
1214 (package (inherit qtsvg)
1219 (uri (qt5-urls name version))
1222 "0p07bg93fdfn4gr2kv38qgnws5znhswajrxdfs8xc9l3i7vi2xn7"))))
1225 ("pkg-config" ,pkg-config)))
1227 `(("fontconfig" ,fontconfig)
1228 ("freetype" ,freetype)
1229 ("libxrender" ,libxrender)
1232 ("qtdeclarative" ,qtdeclarative)))
1233 (synopsis "Qt Gamepad module")
1234 (description "The Qt Gamepad module is an add-on library that enables Qt
1235 applications to support the use of gamepad hardware and in some cases remote
1236 control equipment. The module provides both QML and C++ interfaces. The
1237 primary target audience are embedded devices with fullscreen user interfaces,
1238 and mobile applications targeting TV-like form factors.")))
1240 (define-public qtscxml
1241 (package (inherit qtsvg)
1246 (uri (qt5-urls name version))
1249 "1p5771b9hnpchfcdgy0zkhwg09a6xq88934aggp0rij1k85mkfb0"))
1250 (modules '((guix build utils)))
1253 (delete-file-recursively "tests/3rdparty")
1254 ;; the scion test refers to the bundled 3rd party test code.
1255 (substitute* "tests/auto/auto.pro"
1259 `(("qtbase" ,qtbase)
1260 ("qtdeclarative" ,qtdeclarative)))
1261 (synopsis "Qt SCXML module")
1262 (description "The Qt SCXML module provides functionality to create state
1263 machines from SCXML files. This includes both dynamically creating state
1264 machines (loading the SCXML file and instantiating states and transitions) and
1265 generating a C++ file that has a class implementing the state machine. It
1266 also contains functionality to support data models and executable content.")))
1268 (define-public qtpurchasing
1269 (package (inherit qtsvg)
1270 (name "qtpurchasing")
1274 (uri (qt5-urls name version))
1277 "09rjx53519dfk4qj2gbn3vlxyriasyb747wpg1p11y7jkwqhs4l7"))))
1279 `(("qtbase" ,qtbase)
1280 ("qtdeclarative" ,qtdeclarative)))
1281 (synopsis "Qt Purchasing module")
1282 (description "The Qt Purchasing module provides and in-app API for
1283 purchasing goods and services.")))
1285 (define-public qtcharts
1286 (package (inherit qtsvg)
1291 (uri (qt5-urls name version))
1294 "049x7z8zcp9jixmdv2fjscy2ggpd6za9hkdbb2bqp2mxjm0hwxg0"))))
1296 (substitute-keyword-arguments (package-arguments qtsvg)
1297 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1299 `(("qtbase" ,qtbase)
1300 ("qtdeclarative" ,qtdeclarative)))
1301 (synopsis "Qt Charts module")
1302 (description "The Qt Charts module provides a set of easy to use chart
1303 components. It uses the Qt Graphics View Framework, therefore charts can be
1304 easily integrated to modern user interfaces. Qt Charts can be used as QWidgets,
1305 QGraphicsWidget, or QML types. Users can easily create impressive graphs by
1306 selecting one of the charts themes.")
1307 (license license:gpl3)))
1309 (define-public qtdatavis3d
1310 (package (inherit qtsvg)
1311 (name "qtdatavis3d")
1315 (uri (qt5-urls name version))
1318 "1zdn3vm0nfy9ny7c783aabp3mhlnqhi9fw2rljn7ibbksmsnasi2"))))
1320 (substitute-keyword-arguments (package-arguments qtsvg)
1321 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1323 `(("qtbase" ,qtbase)
1324 ("qtdeclarative" ,qtdeclarative)))
1325 (synopsis "Qt Data Visualization module")
1326 (description "The Qt Data Visualization module provides a way to visualize
1327 data in 3D as bar, scatter, and surface graphs. It is especially useful for
1328 visualizing depth maps and large quantities of rapidly changing data, such as
1329 data received from multiple sensors. The look and feel of graphs can be
1330 customized by using themes or by adding custom items and labels to them.")
1331 (license license:gpl3)))
1333 (define-public qtnetworkauth
1334 (package (inherit qtsvg)
1335 (name "qtnetworkauth")
1339 (uri (qt5-urls name version))
1342 "11fdgacv4syr8bff2vdw7rb0dg1gcqpdf37hm3pn31d6z91frhpw"))))
1344 (substitute-keyword-arguments (package-arguments qtsvg)
1346 `(modify-phases ,phases
1347 (add-after 'unpack 'remove-failing-test
1349 ;; These tests can't find their test data.
1350 (substitute* "tests/auto/auto.pro"
1351 (("oauth1 ") "# oauth1 "))
1354 `(("qtbase" ,qtbase)))
1355 (synopsis "Qt Network Authorization module")
1356 (description "The Qt Network Authorization module provides an
1357 implementation of OAuth and OAuth2 authenticathon methods for Qt.")))
1359 (define-public qtremoteobjects
1360 (package (inherit qtsvg)
1361 (name "qtremoteobjects")
1365 (uri (qt5-urls name version))
1368 "1hngbp0vkr35rpsrac7b9vx6f360v8v2g0fffzm590l8j2ybd0b7"))))
1370 (substitute-keyword-arguments (package-arguments qtsvg)
1372 `(modify-phases ,phases
1373 (add-after 'unpack 'remove-failing-test
1375 ;; This test can't find its imports.
1376 (substitute* "tests/auto/qml/qml.pro"
1377 (("integration") "# integration")
1378 (("usertypes") "# usertypes"))
1379 ;; disable failing tests: they need network
1380 (substitute* "tests/auto/auto.pro"
1381 (("integration_multiprocess proxy_multiprocess integration_external restart")
1382 "integration_multiprocess"))
1385 `(("qtbase" ,qtbase)
1386 ("qtdeclarative" ,qtdeclarative)))
1387 (synopsis "Qt Remote Objects module")
1388 (description "The Qt Remote Objects module is an @dfn{inter-process
1389 communication} (IPC) module developed for Qt. The idea is to extend existing
1390 Qt's functionalities to enable an easy exchange of information between
1391 processes or computers.")))
1393 (define-public qtspeech
1394 (package (inherit qtsvg)
1399 (uri (qt5-urls name version))
1402 "1xc3x3ghnhgchsg1kgj156yg69wn4rwjx8r28i1jd05hxjggn468"))))
1405 (substitute-keyword-arguments (package-arguments qtsvg)
1406 ((#:tests? _ #f) #f))) ; TODO: Enable the tests
1408 `(("qtbase" ,qtbase)))
1411 ("qtdeclarative" ,qtdeclarative)
1412 ("qtmultimedia" ,qtmultimedia)
1413 ("qtxmlpatterns" ,qtxmlpatterns)))
1414 (synopsis "Qt Speech module")
1415 (description "The Qt Speech module enables a Qt application to support
1416 accessibility features such as text-to-speech, which is useful for end-users
1417 who are visually challenged or cannot access the application for whatever
1418 reason. The most common use case where text-to-speech comes in handy is when
1419 the end-user is driving and cannot attend the incoming messages on the phone.
1420 In such a scenario, the messaging application can read out the incoming
1423 (define-public qtspell
1431 (url "https://github.com/manisandro/qtspell")
1433 (file-name (git-file-name name version))
1435 (base32 "1081makirjxixz44ghwz362vgnk5wcks6ni6w01pl667x8wggsd2"))))
1436 (build-system cmake-build-system)
1438 `(#:tests? #f)) ;no test
1440 `(("pkg-config" ,pkg-config)
1441 ("qttools" ,qttools)))
1443 `(("enchant" ,enchant)
1444 ("qtbase" ,qtbase)))
1445 (home-page "https://github.com/manisandro/qtspell")
1446 (synopsis "Spell checking for Qt text widgets")
1448 "QtSpell adds spell-checking functionality to Qt's text widgets,
1449 using the Enchant spell-checking library.")
1450 ;; COPYING file specify GPL3, but source code files all refer to GPL2+.
1451 (license license:gpl2+)))
1453 (define-public qtwebengine
1456 (name "qtwebengine")
1457 (version (package-version qtbase))
1461 (uri (qt5-urls name version))
1464 "1q4idxdm81sx102xc12ixj0xpfx52d6vwvs3jpapnkyq8c7cmby8"))
1465 (modules '((ice-9 ftw)
1469 (guix build utils)))
1472 (let ((preserved-third-party-files
1473 '("base/third_party/double_conversion"
1474 "base/third_party/cityhash"
1475 "base/third_party/cityhash_v103"
1476 "base/third_party/dynamic_annotations"
1477 "base/third_party/icu"
1478 "base/third_party/libevent"
1479 "base/third_party/nspr"
1480 "base/third_party/superfasthash"
1481 "base/third_party/symbolize"
1482 "base/third_party/xdg_mime"
1483 "base/third_party/xdg_user_dirs"
1484 "net/third_party/mozilla_security_manager"
1485 "net/third_party/nss"
1486 "net/third_party/quiche"
1487 "net/third_party/uri_template"
1488 "third_party/abseil-cpp"
1490 "third_party/angle/src/common/third_party/base"
1491 "third_party/angle/src/common/third_party/smhasher"
1492 "third_party/angle/src/common/third_party/xxhash"
1493 "third_party/angle/src/third_party/compiler"
1494 "third_party/axe-core"
1496 "third_party/boringssl"
1497 "third_party/boringssl/src/third_party/fiat"
1498 "third_party/breakpad"
1499 "third_party/brotli"
1502 "third_party/closure_compiler"
1503 "third_party/crashpad"
1504 "third_party/crashpad/crashpad/third_party/lss"
1505 "third_party/crashpad/crashpad/third_party/zlib"
1506 "third_party/crc32c"
1509 "third_party/devtools-frontend"
1510 "third_party/devtools-frontend/src/front_end/third_party/fabricjs"
1511 "third_party/devtools-frontend/src/front_end/third_party/lighthouse"
1512 "third_party/devtools-frontend/src/front_end/third_party/wasmparser"
1513 "third_party/devtools-frontend/src/third_party/axe-core"
1514 "third_party/emoji-segmenter"
1515 "third_party/ffmpeg"
1516 "third_party/googletest"
1517 "third_party/harfbuzz-ng/utils"
1518 "third_party/hunspell"
1519 "third_party/iccjpeg"
1521 "third_party/inspector_protocol"
1522 "third_party/jinja2"
1523 "third_party/jsoncpp"
1524 "third_party/jstemplate"
1525 "third_party/khronos"
1526 "third_party/leveldatabase"
1527 "third_party/libaddressinput"
1528 "third_party/libgifcodec"
1529 "third_party/libjingle_xmpp"
1530 "third_party/libjpeg_turbo"
1531 "third_party/libpng"
1532 "third_party/libsrtp"
1533 "third_party/libsync"
1534 "third_party/libudev"
1535 "third_party/libvpx"
1536 "third_party/libwebm"
1537 "third_party/libwebp"
1538 "third_party/libxml"
1539 "third_party/libxslt"
1540 "third_party/libyuv"
1543 "third_party/markupsafe"
1544 "third_party/mesa_headers"
1545 "third_party/metrics_proto"
1546 "third_party/modp_b64"
1548 "third_party/one_euro_filter"
1551 "third_party/pdfium"
1552 "third_party/pdfium/third_party/agg23"
1553 "third_party/pdfium/third_party/base"
1554 "third_party/pdfium/third_party/freetype"
1555 "third_party/pdfium/third_party/lcms"
1556 "third_party/pdfium/third_party/libopenjpeg20"
1557 "third_party/pdfium/third_party/skia_shared"
1558 "third_party/perfetto"
1561 "third_party/polymer"
1562 "third_party/protobuf"
1563 "third_party/protobuf/third_party/six"
1564 "third_party/pyjson5"
1566 "third_party/rnnoise"
1568 "third_party/skia/include/third_party/skcms/skcms.h"
1569 "third_party/skia/include/third_party/vulkan"
1570 "third_party/skia/third_party/skcms"
1571 "third_party/skia/third_party/vulkanmemoryallocator"
1572 "third_party/smhasher"
1573 "third_party/snappy"
1574 "third_party/sqlite"
1575 "third_party/usb_ids"
1576 "third_party/usrsctp"
1577 "third_party/web-animations-js"
1578 "third_party/webrtc"
1579 "third_party/webrtc/common_audio/third_party/fft4g"
1580 "third_party/webrtc/common_audio/third_party/spl_sqrt_floor"
1581 "third_party/webrtc/modules/third_party/fft"
1582 "third_party/webrtc/modules/third_party/g711"
1583 "third_party/webrtc/modules/third_party/g722"
1584 "third_party/webrtc/rtc_base/third_party/base64"
1585 "third_party/webrtc/rtc_base/third_party/sigslot"
1586 "third_party/webrtc_overrides"
1587 "third_party/widevine/cdm/widevine_cdm_common.h"
1588 "third_party/widevine/cdm/widevine_cdm_version.h"
1592 "url/third_party/mozilla"
1593 "v8/src/third_party/utf8-decoder"
1594 "v8/src/third_party/valgrind"
1595 "v8/src/third_party/siphash"
1596 "v8/third_party/v8/builtins"
1597 "v8/third_party/inspector_protocol"))
1598 (protected (make-regexp "\\.(gn|gyp)i?$")))
1599 (define preserved-club
1600 (map (lambda (member)
1601 (string-append "./" member))
1602 preserved-third-party-files))
1603 (define (empty? dir)
1604 (equal? (scandir dir) '("." "..")))
1605 (define (third-party? file)
1606 (string-contains file "third_party/"))
1607 (define (useless? file)
1608 (any (cute string-suffix? <> file)
1609 '(".zip" ".so" ".dll" ".exe" ".jar")))
1610 (define (parents child)
1611 ;; Return all parent directories of CHILD up to and including
1612 ;; the closest "third_party".
1613 (let* ((dirs (match (string-split child #\/)
1614 ((dirs ... last) dirs)))
1615 (closest (list-index (lambda (dir)
1616 (string=? "third_party" dir))
1618 (delim (- (length dirs) closest)))
1619 (fold (lambda (dir prev)
1620 (cons (string-append (car prev) "/" dir)
1622 (list (string-join (list-head dirs delim) "/"))
1623 (list-tail dirs delim))))
1624 (define (remove-loudly file)
1625 (format #t "deleting ~a...~%" file)
1628 (define (delete-unwanted-files child stat flag base level)
1630 ((or 'regular 'symlink 'stale-symlink)
1631 (when (third-party? child)
1632 (unless (or (member child preserved-club)
1633 (any (cute member <> preserved-club)
1635 (regexp-exec protected child))
1636 (remove-loudly child)))
1637 (when (and (useless? child) (file-exists? child))
1638 (remove-loudly child))
1640 ('directory-processed
1641 (when (empty? child)
1646 (with-directory-excursion "src/3rdparty"
1647 ;; TODO: Try removing "gn" too for future versions of qtwebengine.
1648 (delete-file-recursively "ninja")
1650 (with-directory-excursion "chromium"
1651 ;; Delete bundled software and binaries that were not explicitly
1653 (nftw "." delete-unwanted-files 'depth 'physical)
1655 ;; Assert that each preserved item is present to catch removals.
1656 (for-each (lambda (third-party)
1657 (unless (file-exists? third-party)
1658 (error (format #f "~s does not exist!~%" third-party))))
1661 ;; Use relative header locations instead of hard coded ones.
1663 "base/third_party/dynamic_annotations/dynamic_annotations.c"
1664 (("base/third_party/valgrind") "valgrind"))
1666 "third_party/breakpad/breakpad/src/common/linux/libcurl_wrapper.h"
1667 (("third_party/curl") "curl"))
1669 '("components/viz/common/gpu/vulkan_context_provider.h"
1670 "components/viz/common/resources/resource_format_utils_vulkan.h"
1671 "gpu/config/gpu_util.cc")
1672 (("third_party/vulkan/include/")
1675 ;; Replace Google Analytics bundle with an empty file and hope
1677 (mkdir-p "third_party/analytics")
1678 (call-with-output-file
1679 "third_party/analytics/google-analytics-bundle.js"
1682 ;; Do not enable support for loading the Widevine DRM plugin.
1683 (substitute* "src/buildtools/config/common.pri"
1684 (("enable_widevine=true")
1685 "enable_widevine=false"))
1687 (build-system gnu-build-system)
1694 ("pkg-config" ,pkg-config)
1695 ("python-2" ,python-2)
1696 ("python-six" ,python2-six)
1699 `(("alsa-lib" ,alsa-lib)
1701 ("cups-minimal" ,cups-minimal)
1705 ("fontconfig" ,fontconfig)
1706 ("harbuzz" ,harfbuzz)
1708 ("jsoncpp" ,jsoncpp)
1711 ("libevent" ,libevent)
1712 ("libgcrypt" ,libgcrypt)
1713 ("libjpeg" ,libjpeg-turbo)
1715 ("libwebp" ,libwebp)
1718 ("libxcomposite" ,libxcomposite)
1719 ("libxcursor" ,libxcursor)
1721 ("libxkbcommon" ,libxkbcommon)
1722 ;; FIXME: libxml2 needs to built with icu support though it links to
1723 ;; libxml2 configure summary still states "Checking for compatible
1724 ;; system libxml2... no"
1725 ("libxml2" ,libxml2)
1726 ("libxrandr" ,libxrandr)
1727 ("libxrender" ,libxrender)
1728 ("libxslt" ,libxslt)
1729 ("libxtst" ,libxtst)
1731 ("minizip" ,minizip)
1734 ("pciutils" ,pciutils)
1735 ("protobuf" ,protobuf)
1736 ("pulseaudio" ,pulseaudio)
1738 ("qtdeclarative" ,qtdeclarative)
1739 ("qtmultimedia" ,qtmultimedia)
1740 ("qtwebchannel" ,qtwebchannel)
1744 ("valgrind" ,valgrind)
1745 ("vulkan-headers" ,vulkan-headers)
1746 ("xcb-util" ,xcb-util)))
1748 (substitute-keyword-arguments (package-arguments qtsvg)
1750 `(modify-phases ,phases
1751 (add-before 'configure 'substitute-source
1752 (lambda* (#:key inputs outputs #:allow-other-keys)
1753 (let ((out (assoc-ref outputs "out"))
1754 (nss (assoc-ref inputs "nss"))
1755 (udev (assoc-ref inputs "udev")))
1756 ;; Qtwebengine is not installed into the same prefix as
1757 ;; qtbase. Some qtbase QTLibraryInfo constants will not
1758 ;; work. Replace with the full path to the qtwebengine
1759 ;; translations and locales in the store.
1760 (substitute* "src/core/web_engine_library_info.cpp"
1761 (("QLibraryInfo::location\\(QLibraryInfo::TranslationsPath\\)")
1762 (string-append "QLatin1String(\"" out "/share/qt5/translations\")"))
1763 (("QLibraryInfo::location\\(QLibraryInfo::DataPath\\)")
1764 (string-append "QLatin1String(\"" out "/share/qt5\")")))
1765 ;; Substitute full dynamic library path for nss.
1766 (substitute* "src/3rdparty/chromium/crypto/nss_util.cc"
1768 (string-append nss "/lib/nss/libnssckbi.so")))
1769 ;; Substitute full dynamic library path for udev.
1770 (substitute* "src/3rdparty/chromium/device/udev_linux/udev1_loader.cc"
1772 (string-append udev "/lib/libudev.so.1")))
1774 (add-before 'configure 'set-env
1776 ;; Avoids potential race conditions.
1777 (setenv "PYTHONDONTWRITEBYTECODE" "1")
1778 (setenv "NINJAFLAGS"
1779 (string-append "-k1" ;less verbose build output
1780 ;; Respect the '--cores' option of 'guix build'.
1781 " -j" (number->string (parallel-job-count))))
1785 ;; Valid QT_BUILD_PARTS variables are:
1786 ;; libs tools tests examples demos docs translations
1787 (invoke "qmake" "QT_BUILD_PARTS = libs tools" "--"
1788 "--webengine-printing-and-pdf=no"
1789 "--webengine-ffmpeg=system"
1790 "--webengine-icu=system"
1791 "--webengine-pepper-plugins=no")))))
1792 ;; Tests are disabled due to "Could not find QtWebEngineProcess error"
1793 ;; It's possible this can be fixed by setting QTWEBENGINEPROCESS_PATH
1794 ;; before running tests.
1795 ((#:tests? _ #f) #f)))
1796 (native-search-paths
1797 (list (search-path-specification
1798 (file-type 'regular)
1800 (variable "QTWEBENGINEPROCESS_PATH")
1801 (files '("lib/qt5/libexec/QtWebEngineProcess")))))
1802 (home-page "https://wiki.qt.io/QtWebEngine")
1803 (synopsis "Qt WebEngine module")
1804 (description "The Qt5WebEngine module provides support for web applications
1805 using the Chromium browser project. The Chromium source code has Google services
1806 and binaries removed, and adds modular support for using system libraries.")
1807 (license license:lgpl2.1+)))
1809 (define-public python-sip
1816 (uri (list (pypi-uri "sip" version)
1817 (string-append "https://www.riverbankcomputing.com/static/"
1818 "Downloads/sip/" version
1819 "/sip-" version ".tar.gz")))
1822 "1idaivamp1jvbbai9yzv471c62xbqxhaawccvskaizihkd0lq0jx"))))
1823 (build-system python-build-system)
1825 `(("python" ,python-wrapper)))
1827 `(("python-toml" ,python-toml)
1828 ("python-packaging" ,python-packaging)))
1829 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
1830 (synopsis "Python binding creator for C and C++ libraries")
1832 "SIP is a tool to create Python bindings for C and C++ libraries. It
1833 was originally developed to create PyQt, the Python bindings for the Qt
1834 toolkit, but can be used to create bindings for any C or C++ library.
1836 SIP comprises a code generator and a Python module. The code generator
1837 processes a set of specification files and generates C or C++ code, which
1838 is then compiled to create the bindings extension module. The SIP Python
1839 module provides support functions to the automatically generated code.")
1840 ;; There is a choice between a python like license, gpl2 and gpl3.
1841 ;; For compatibility with pyqt, we need gpl3.
1842 (license license:gpl3)))
1844 (define-public python-sip-4
1846 (inherit python-sip)
1852 (uri (list (pypi-uri "sip" version)
1853 (string-append "https://www.riverbankcomputing.com/static/"
1854 "Downloads/sip/" version
1855 "/sip-" version ".tar.gz")))
1858 "1ra15vb5i9gkg2vdvh16cq9x2mmzw1yi3xphxs8q34q1pf83gkgd"))))
1859 (build-system gnu-build-system)
1861 `(("python" ,python-wrapper)))
1862 (propagated-inputs `())
1864 `(#:tests? #f ; no check target
1865 #:imported-modules ((guix build python-build-system)
1866 ,@%gnu-build-system-modules)
1867 #:modules ((srfi srfi-1)
1868 ((guix build python-build-system) #:select (python-version))
1869 ,@%gnu-build-system-modules)
1871 (modify-phases %standard-phases
1873 (lambda* (#:key inputs outputs #:allow-other-keys)
1874 (let* ((out (assoc-ref outputs "out"))
1875 (bin (string-append out "/bin"))
1876 (include (string-append out "/include"))
1877 (python (assoc-ref inputs "python"))
1878 (lib (string-append out "/lib/python"
1879 (python-version python)
1881 (invoke "python" "configure.py"
1884 "--incdir" include)))))))
1885 (license license:gpl3)))
1887 (define-public python-pyqt
1889 (name "python-pyqt")
1894 ;; PyPI is the canonical distribution point of PyQt. Older
1895 ;; releases are available from the web site.
1896 (uri (list (pypi-uri "PyQt5" version)
1897 (string-append "https://www.riverbankcomputing.com/static/"
1898 "Downloads/PyQt5/" version "/PyQt5-"
1899 version ".tar.gz")))
1900 (file-name (string-append "PyQt5-" version ".tar.gz"))
1903 "1z74295i69cha52llsqffzhb5zz7qnbjc64h8qg21l91jgf0harp"))
1904 (patches (search-patches "pyqt-configure.patch"))))
1905 (build-system gnu-build-system)
1907 `(("qtbase" ,qtbase))) ; for qmake
1909 `(("python-sip" ,python-sip)
1910 ("python-pyqt5-sip" ,python-pyqt5-sip)))
1912 `(("python" ,python-wrapper)
1914 ("qtconnectivity" ,qtconnectivity)
1915 ("qtdeclarative" ,qtdeclarative)
1916 ("qtlocation" ,qtlocation)
1917 ("qtmultimedia" ,qtmultimedia)
1918 ("qtsensors" ,qtsensors)
1919 ("qtserialport" ,qtserialport)
1921 ("qttools" ,qttools)
1922 ("qtwebchannel" ,qtwebchannel)
1923 ("qtwebkit" ,qtwebkit)
1924 ("qtwebsockets" ,qtwebsockets)
1925 ("qtx11extras" ,qtx11extras)
1926 ("qtxmlpatterns" ,qtxmlpatterns)))
1928 `(#:modules ((srfi srfi-1)
1929 ((guix build python-build-system) #:select (python-version))
1930 ,@%gnu-build-system-modules)
1931 #:imported-modules ((guix build python-build-system)
1932 ,@%gnu-build-system-modules)
1934 (modify-phases %standard-phases
1935 ;; When building python-pyqtwebengine, <qprinter.h> can not be
1936 ;; included. Here we substitute the full path to the header in the
1938 (add-before 'configure 'substitute-source
1939 (lambda* (#:key inputs #:allow-other-keys)
1940 (let* ((qtbase (assoc-ref inputs "qtbase"))
1941 (qtprinter.h (string-append "\"" qtbase "/include/qt5/QtPrintSupport/qprinter.h\"")))
1942 (substitute* "sip/QtPrintSupport/qprinter.sip"
1947 (lambda* (#:key inputs outputs #:allow-other-keys)
1948 (let* ((out (assoc-ref outputs "out"))
1949 (bin (string-append out "/bin"))
1950 (sip (string-append out "/share/sip"))
1951 (plugins (string-append out "/lib/qt5/plugins"))
1952 (designer (string-append plugins "/designer"))
1953 (qml (string-append plugins "/PyQt5"))
1954 (python (assoc-ref inputs "python"))
1955 (lib (string-append out "/lib/python"
1956 (python-version python)
1958 (stubs (string-append lib "/PyQt5")))
1959 (invoke "python" "configure.py"
1963 "--designer-plugindir" designer
1964 "--qml-plugindir" qml
1965 ; Where to install the PEP 484 Type Hints stub
1966 ; files. Without this the stubs are tried to be
1967 ; installed into the python package's
1968 ; site-package directory, which is read-only.
1970 "--sipdir" sip)))))))
1971 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
1972 (synopsis "Python bindings for Qt")
1974 "PyQt is a set of Python v2 and v3 bindings for the Qt application
1975 framework. The bindings are implemented as a set of Python modules and
1976 contain over 620 classes.")
1977 (license license:gpl3)))
1979 (define-public python-pyqt5-sip
1981 (name "python-pyqt5-sip")
1986 (uri (pypi-uri "PyQt5_sip" version))
1989 "1gg032ys4pccwkdzmdryadc9a4lq85nr05pag9swrsdykbdl9s9h"))))
1990 (build-system python-build-system)
1992 `(#:tests? #f)) ;; No test code.
1993 (home-page "https://www.riverbankcomputing.com/software/sip/")
1994 (synopsis "Sip module support for PyQt5")
1995 (description "Sip module support for PyQt5")
1996 (license license:lgpl2.1+)))
1998 (define-public python-pyqtwebengine
2000 (name "python-pyqtwebengine")
2005 ;; The newest releases are only available on PyPI. Older ones
2006 ;; are mirrored at the upstream home page.
2007 (uri (list (pypi-uri "PyQtWebEngine" version)
2008 (string-append "https://www.riverbankcomputing.com/static"
2009 "/Downloads/PyQtWebEngine/" version
2010 "/PyQtWebEngine-" version ".tar.gz")))
2013 "0d56ak71r14w4f9r96vaj34qcn2rbln3s6ildvvyc707fjkzwwjd"))))
2014 (build-system gnu-build-system)
2016 `(("python" ,python)
2017 ("python-sip" ,python-sip)
2018 ;; qtbase is required for qmake
2019 ("qtbase" ,qtbase)))
2021 `(("python" ,python-wrapper)
2022 ("python-sip" ,python-sip)
2023 ("python-pyqt" ,python-pyqt)
2026 ("qtdeclarative" ,qtdeclarative)
2027 ("qtwebchannel" ,qtwebchannel)
2028 ("qtwebengine" ,qtwebengine)))
2030 `(#:modules ((srfi srfi-1)
2031 ((guix build python-build-system) #:select (python-version))
2032 ,@%gnu-build-system-modules)
2033 #:imported-modules ((guix build python-build-system)
2034 ,@%gnu-build-system-modules)
2036 (modify-phases %standard-phases
2038 (lambda* (#:key inputs outputs #:allow-other-keys)
2039 (let* ((out (assoc-ref outputs "out"))
2040 (sipdir (string-append out "/share/sip"))
2041 (pyqt-sipdir (string-append
2042 (assoc-ref inputs "python-pyqt") "/share/sip"))
2043 (python (assoc-ref inputs "python"))
2044 (lib (string-append out "/lib/python"
2045 (python-version python)
2046 "/site-packages/PyQt5"))
2047 (stubs (string-append lib "/PyQt5")))
2050 (invoke "python" "configure.py"
2057 "--pyqt-sipdir" pyqt-sipdir))))
2058 ;; Because this has a different prefix than python-pyqt then we need
2059 ;; to make this a namespace of it's own
2060 (add-after 'install 'make-namespace
2061 (lambda* (#:key inputs outputs #:allow-other-keys)
2062 (let* ((__init__.py (string-append
2063 (assoc-ref outputs "out")
2065 (python-version (assoc-ref inputs "python"))
2066 "/site-packages/PyQt5/__init__.py")))
2067 (with-output-to-file __init__.py
2068 (lambda _ (display "
2069 from pkgutil import extend_path
2070 __path__ = extend_path(__path__, __name__)
2073 (home-page "https://www.riverbankcomputing.com/software/pyqtwebengine/intro")
2074 (synopsis "Python bindings for QtWebEngine")
2076 "PyQtWebEngine is a set of Python bindings for The Qt Company's Qt
2077 WebEngine libraries. The bindings sit on top of PyQt5 and are implemented as a
2078 set of three modules. Prior to v5.12 these bindings were part of PyQt
2080 (license license:gpl3)))
2082 ;; XXX: This is useful because qtwebkit does not build reliably at this time.
2083 ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-*
2084 ;; packages that could be used together.
2085 (define-public python-pyqt-without-qtwebkit
2086 (package/inherit python-pyqt
2087 (name "python-pyqt-without-qtwebkit")
2089 (alist-delete "qtwebkit" (package-inputs python-pyqt)))))
2091 (define-public python-pyqt-builder
2093 (name "python-pyqt-builder")
2098 (uri (pypi-uri "PyQt-builder" version))
2101 "0nh0054c54ji3sm6d268fccf0y5f613spswwgwqd3rnn816hnljl"))))
2102 (build-system python-build-system)
2104 `(("python-sip" ,python-sip)))
2105 (home-page "https://www.riverbankcomputing.com/static/Docs/PyQt-builder/")
2106 (synopsis "PEP 517 compliant PyQt build system")
2107 (description "PyQt-builder is a tool for generating Python bindings for C++
2108 libraries that use the Qt application framework. The bindings are built on
2109 top of the PyQt bindings for Qt. PyQt-builder is used to build PyQt itself.")
2110 ;; Either version 2 or 3, but no other version. See the file
2111 ;; 'pyqtbuild/builder.py' in the source distribution for more information.
2112 (license (list license:gpl2 license:gpl3))))
2114 (define-public python-qtpy
2116 (name "python-qtpy")
2121 (uri (pypi-uri "QtPy" version))
2124 "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd"))))
2125 (build-system python-build-system)
2127 `(("python-pyside2" ,python-pyside-2)))
2129 `(;; Not all supported bindings are packaged. Especially PyQt4.
2131 (home-page "https://github.com/spyder-ide/qtpy")
2133 "Qt bindings (PyQt5, PyQt4 and PySide) and additional custom QWidgets")
2135 "Provides an abstraction layer on top of the various Qt bindings
2136 (PyQt5, PyQt4 and PySide) and additional custom QWidgets.")
2137 (license license:expat)))
2139 (define-public qscintilla
2145 (uri (string-append "https://www.riverbankcomputing.com/static"
2146 "/Downloads/QScintilla/" version
2147 "/QScintilla-" version ".tar.gz"))
2150 "19r0vpqb4m9bqwxmjp9w6x0hgahkrg7zryk78hwgplj7vdbn0d77"))))
2151 (build-system gnu-build-system)
2154 (modify-phases %standard-phases
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let ((out (assoc-ref outputs "out")))
2159 (substitute* "qscintilla.pro"
2160 (("\\$\\$\\[QT_INSTALL_LIBS\\]")
2161 (string-append out "/lib"))
2162 (("\\$\\$\\[QT_INSTALL_HEADERS\\]")
2163 (string-append out "/include"))
2164 (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]")
2165 (string-append out "/translations"))
2166 (("\\$\\$\\[QT_INSTALL_DATA\\]")
2167 (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))
2168 (("\\$\\$\\[QT_HOST_DATA\\]")
2169 (string-append out "/lib/qt$${QT_MAJOR_VERSION}")))
2170 (invoke "qmake")))))))
2171 (native-inputs `(("qtbase" ,qtbase)))
2172 (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro")
2173 (synopsis "Qt port of the Scintilla C++ editor control")
2174 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2175 editor control. QScintilla includes features especially useful when editing
2176 and debugging source code. These include support for syntax styling, error
2177 indicators, code completion and call tips.")
2178 (license license:gpl3+)))
2180 (define-public python-qscintilla
2181 (package/inherit qscintilla
2182 (name "python-qscintilla")
2185 (list "--pyqt=PyQt5"
2186 (string-append "--pyqt-sipdir="
2187 (assoc-ref %build-inputs "python-pyqt")
2189 (string-append "--qsci-incdir="
2190 (assoc-ref %build-inputs "qscintilla")
2192 (string-append "--qsci-libdir="
2193 (assoc-ref %build-inputs "qscintilla")
2196 (modify-phases %standard-phases
2198 (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
2199 (let ((out (assoc-ref outputs "out"))
2200 (python (assoc-ref inputs "python")))
2202 (apply invoke "python3" "configure.py"
2204 ;; Install to the right directory
2205 (substitute* '("Makefile"
2207 (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") out)
2208 (((string-append python "/lib"))
2209 (string-append out "/lib")))
2210 ;; And fix the installed.txt file
2211 (substitute* "installed.txt"
2212 (("/gnu/store/[^/]+") out)))
2215 `(("qscintilla" ,qscintilla)
2217 ("python-pyqt" ,python-pyqt)))
2218 (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++
2219 editor control. QScintilla includes features especially useful when editing
2220 and debugging source code. These include support for syntax styling, error
2221 indicators, code completion and call tips.
2223 This package provides the Python bindings.")))
2225 ;; PyQt only looks for modules in its own directory. It ignores environment
2226 ;; variables such as PYTHONPATH, so we need to build a union package to make
2228 (define-public python-pyqt+qscintilla
2229 (package/inherit python-pyqt
2230 (name "python-pyqt+qscintilla")
2232 (build-system trivial-build-system)
2234 '(#:modules ((guix build union))
2236 (use-modules (ice-9 match)
2238 (match %build-inputs
2239 (((names . directories) ...)
2240 (union-build (assoc-ref %outputs "out")
2244 `(("python-pyqt" ,python-pyqt)
2245 ("python-qscintilla" ,python-qscintilla)))
2246 (synopsis "Union of PyQt and the Qscintilla extension")
2248 "This package contains the union of PyQt and the Qscintilla extension.")))
2250 (define-public qtkeychain
2258 (url "https://github.com/frankosterfeld/qtkeychain/")
2259 (commit (string-append "v" version))))
2260 (file-name (git-file-name name version))
2263 "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc"))))
2264 (build-system cmake-build-system)
2266 `(("pkg-config" ,pkg-config)
2267 ("qttools" ,qttools)))
2269 `(("qtbase" ,qtbase)))
2271 `(#:tests? #f ; No tests included
2273 (modify-phases %standard-phases
2274 (add-before 'configure 'set-qt-trans-dir
2276 (substitute* "CMakeLists.txt"
2277 (("\\$\\{qt_translations_dir\\}")
2278 "${CMAKE_INSTALL_PREFIX}/share/qt5/translations"))
2280 (home-page "https://github.com/frankosterfeld/qtkeychain")
2281 (synopsis "Qt API to store passwords")
2283 "QtKeychain is a Qt library to store passwords and other secret data
2284 securely. It will not store any data unencrypted unless explicitly requested.")
2285 (license license:bsd-3)))
2287 (define-public qtsolutions
2288 (let ((commit "9568abd142d581b67b86a5f63d823a34b0612702")
2291 (name "qtsolutions")
2292 (version (git-version "0" revision commit))
2297 (url "https://github.com/qtproject/qt-solutions")
2299 (file-name (git-file-name name version))
2301 (base32 "17fnmassflm3vxi0krpr6fff368jy38cby31a48rban4nqqmgx7n"))
2302 (modules '((guix build utils)
2306 ;; Unvendor QtLockFile from QtSingleApplication.
2308 (with-directory-excursion "qtsingleapplication/src"
2309 (for-each delete-file
2310 (find-files "." "qtlockedfile.*\\.(h|cpp)"))
2311 (substitute* "qtsingleapplication.pri"
2312 ;; Add include path of LockedFile.
2313 (("INCLUDEPATH \\+=")
2314 "INCLUDEPATH += ../../qtlockedfile/src")
2315 ;; Link library of LockedFile.
2317 "LIBS += -lQtSolutions_LockedFile"))
2318 (substitute* '("qtlocalpeer.h" "qtlocalpeer.cpp")
2319 (("#include \"qtlockedfile.*\\.cpp\"") "")
2320 ;; Unwrap namespace added in the vendoring process.
2321 (("QtLP_Private::QtLockedFile")
2324 (build-system gnu-build-system)
2326 `(#:tests? #f ; No target
2328 ((guix build copy-build-system)
2329 ,@%gnu-build-system-modules)
2331 (((guix build copy-build-system) #:prefix copy:)
2332 (guix build gnu-build-system)
2335 (modify-phases %standard-phases
2336 (add-after 'unpack 'patch-source
2337 (lambda* (#:key outputs #:allow-other-keys)
2338 (substitute* (find-files "." "common.pri")
2339 ;; Remove unnecessary prefixes/suffixes in library names.
2342 ;; Disable building of examples.
2343 (substitute* (find-files "." "\\.pro$")
2344 (("SUBDIRS\\+=examples") ""))
2345 ;; Fix deprecated functions.
2346 (substitute* "qtsoap/src/qtsoap.cpp"
2347 (("toAscii") "toUtf8"))
2351 (for-each (lambda (solution)
2352 (with-directory-excursion solution
2353 (invoke "./configure" "-library")
2355 '("qtlockedfile" "qtpropertybrowser" "qtservice"
2356 "qtsingleapplication" "qtsoap"))
2360 (for-each (lambda (solution)
2361 (with-directory-excursion solution
2363 '("qtlockedfile" "qtpropertybrowser" "qtservice"
2364 "qtsingleapplication" "qtsoap"))
2368 (for-each (lambda (solution)
2369 (with-directory-excursion solution
2371 (assoc-ref copy:%standard-phases 'install)
2373 '(("src" "include" #:include-regexp ("\\.h$"))
2376 '("qtlockedfile" "qtpropertybrowser" "qtservice"
2377 "qtsingleapplication" "qtsoap")))))))
2379 `(("qtbase" ,qtbase)))
2380 (synopsis "Collection of Qt extensions")
2381 (description "QtSolutions is a set of components extending Qt.
2383 @item QtLockedFile: A class that extends QFile with advisory locking functions.
2384 @item QtPropertyBrowser: A framework that enables the user to edit a set of
2386 @item QtService: A helper for writing services such as Unix daemons.
2387 @item QtSingleApplication: A component that provides support for applications
2388 that can be only started once per user.
2389 @item QtSoap: A component that provides basic web service support with version
2390 1.1 of the SOAP protocol.
2392 (home-page "https://doc.qt.io/archives/qq/qq09-qt-solutions.html")
2393 (license (list license:bsd-3
2394 ;; QScriptParser and QScriptGrammar specifically allow
2395 ;; redistribution under GPL3 or LGPL2.1
2396 license:gpl3 license:lgpl2.1)))))
2406 (string-append "mirror://sourceforge/qwt/qwt/"
2407 version "/qwt-" version ".tar.bz2"))
2409 (base32 "0hf0mpca248xlqn7xnzkfj8drf19gdyg5syzklvq8pibxiixwxj0"))))
2410 (build-system gnu-build-system)
2412 `(("qtbase" ,qtbase)
2414 ("qttools" ,qttools)))
2417 (modify-phases %standard-phases
2419 (lambda* (#:key outputs #:allow-other-keys)
2420 (let* ((out (assoc-ref outputs "out"))
2421 (docdir (string-append out "/share/doc/qwt"))
2422 (incdir (string-append out "/include/qwt"))
2423 (pluginsdir (string-append out "/lib/qt5/plugins/designer"))
2424 (featuresdir (string-append out "/lib/qt5/mkspecs/features")))
2425 (substitute* '("qwtconfig.pri")
2426 (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x)
2427 (format #f "~a = ~a\n" x out))
2428 (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x)
2429 (format #f "~a = ~a\n" x docdir))
2430 (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x)
2431 (format #f "~a = ~a\n" x incdir))
2432 (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x)
2433 (format #f "~a = ~a\n" x pluginsdir))
2434 (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x)
2435 (format #f "~a = ~a\n" x featuresdir)))
2436 (substitute* '("doc/doc.pro")
2437 ;; We'll install them in the 'install-man-pages' phase.
2438 (("^unix:doc\\.files.*") ""))
2440 (add-after 'install 'install-man-pages
2441 (lambda* (#:key outputs #:allow-other-keys)
2442 (let* ((out (assoc-ref outputs "out"))
2443 (man (string-append out "/share/man")))
2444 ;; Remove some incomplete manual pages.
2445 (for-each delete-file (find-files "doc/man/man3" "^_tmp.*"))
2447 (copy-recursively "doc/man" man)
2449 (home-page "http://qwt.sourceforge.net")
2450 (synopsis "Qt widgets for plots, scales, dials and other technical software
2453 "The Qwt library contains widgets and components which are primarily useful
2454 for technical and scientific purposes. It includes a 2-D plotting widget,
2455 different kinds of sliders, and much more.")
2458 ;; The Qwt license is LGPL2.1 with some exceptions.
2459 (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html")
2460 ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either).
2461 license:lgpl2.1 license:gpl3))))
2463 (define-public qtwebkit
2466 (version "5.212.0-alpha4")
2470 (uri (string-append "https://github.com/annulen/webkit/releases/download/"
2471 "qtwebkit-" version "/qtwebkit-" version ".tar.xz"))
2474 "1rm9sjkabxna67dl7myx9d9vpdyfxfdhrk9w7b94srkkjbd2d8cw"))
2475 (patches (search-patches "qtwebkit-pbutils-include.patch"))))
2476 (build-system cmake-build-system)
2484 ("pkg-config" ,pkg-config)))
2488 ("gst-plugins-base" ,gst-plugins-base)
2489 ("libjpeg" ,libjpeg-turbo)
2491 ("libwebp" ,libwebp)
2493 ("fontconfig" ,fontconfig)
2494 ("libxrender" ,libxrender)
2496 ("qtdeclarative" ,qtdeclarative)
2497 ("qtlocation" ,qtlocation)
2498 ("qtmultimedia" ,qtmultimedia)
2499 ("qtsensors" ,qtsensors)
2500 ("qtwebchannel" ,qtwebchannel)
2501 ("libxml2" ,libxml2)
2502 ("libxslt" ,libxslt)
2504 ("libxcomposite" ,libxcomposite)))
2506 `(#:tests? #f ; no apparent tests; it might be necessary to set
2507 ; ENABLE_API_TESTS, see CMakeLists.txt
2509 ;; Parallel builds fail due to a race condition:
2510 ;; <https://bugs.gnu.org/34062>.
2511 #:parallel-build? #f
2513 #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE"
2515 "-DUSE_LIBHYPHEN=OFF"
2516 "-DUSE_SYSTEM_MALLOC=ON"
2517 ;; XXX: relative dir installs to build dir?
2518 (string-append "-DECM_MKSPECS_INSTALL_DIR="
2519 %output "/lib/qt5/mkspecs/modules")
2520 ;; Sacrifice a little speed in order to link
2521 ;; libraries and test executables in a
2522 ;; reasonable amount of memory.
2523 "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory"
2524 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory")))
2525 (home-page "https://www.webkit.org")
2526 (synopsis "Web browser engine and classes to render and interact with web
2528 (description "QtWebKit provides a Web browser engine that makes it easy to
2529 embed content from the World Wide Web into your Qt application. At the same
2530 time Web content can be enhanced with native controls.")
2531 ;; Building QtWebKit takes around 13 hours on an AArch64 machine. Give some
2532 ;; room for slower or busy hardware.
2533 (properties '((timeout . 64800))) ;18 hours
2535 ;; XXX: This consumes too much RAM to successfully build on AArch64 (e.g.,
2536 ;; SoftIron OverDrive with 8 GiB of RAM), so instead of wasting resources,
2537 ;; disable it on non-Intel platforms.
2538 (supported-systems '("x86_64-linux" "i686-linux"))
2540 (license license:lgpl2.1+)))
2542 (define-public dotherside
2550 (url "https://github.com/filcuc/DOtherSide")
2551 (commit (string-append "v" version))))
2552 (file-name (git-file-name name version))
2555 "09fz6v8rp28997f235yaifj8p4vvsyv45knc1iivgdvx7msgcd0m"))))
2556 (build-system cmake-build-system)
2558 `(("qttools" ,qttools)))
2560 `(("qtbase" ,qtbase)
2561 ("qtdeclarative" ,qtdeclarative)))
2562 (home-page "https://filcuc.github.io/DOtherSide/index.html")
2563 (synopsis "C language library for creating bindings for the Qt QML language")
2565 "DOtherSide is a C language library for creating bindings for the
2566 QT QML language. The following features are implementable from
2569 @item Creating custom QObject
2570 @item Creating custom QAbstractListModels
2571 @item Creating custom properties, signals and slots
2572 @item Creating from QML QObject defined in the binded language
2573 @item Creating from Singleton QML QObject defined in the binded language
2575 (license license:lgpl3))) ;version 3 only (+ exception)
2577 ;; There have been no public releases yet.
2578 (define-public qtcolorwidgets
2579 (let ((commit "a95f72e935fe9e046061a1d1c3930cbfbcb533e0")
2582 (name "qtcolorwidgets")
2583 (version (git-version "0" revision commit))
2587 (url "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2589 (file-name (git-file-name name version))
2592 "0dkiwlqh2gwhlp78c1fmchj3shl4p9inspcl96ya5aa8mn6kydy8"))))
2593 (build-system cmake-build-system)
2594 (arguments `(#:tests? #f)) ; There are no tests
2596 `(("qttools" ,qttools)))
2598 `(("qtbase" ,qtbase)))
2599 (home-page "https://gitlab.com/mattia.basaglia/Qt-Color-Widgets")
2600 (synopsis "Color management widgets")
2601 (description "QtColorWidgets provides a Qt color dialog that is more
2602 user-friendly than the default @code{QColorDialog} and several other
2603 color-related widgets.")
2604 ;; Includes a license exception for combining with GPL2 code.
2605 (license license:lgpl3+))))
2607 (define-public python-shiboken-2
2609 (name "python-shiboken-2")
2610 (version "5.14.2.3")
2613 (uri (string-append "https://download.qt.io/official_releases"
2614 "/QtForPython/pyside2/PySide2-" version
2615 "-src/pyside-setup-opensource-src-"
2619 "08lhqm0n3fjqpblcx9rshsp8g3bvf7yzbai5q99bly2wa04y6b83"))))
2620 (build-system cmake-build-system)
2622 `(("clang-toolchain" ,clang-toolchain)
2623 ("libxml2" ,libxml2)
2624 ("libxslt" ,libxslt)
2625 ("python-wrapper" ,python-wrapper)
2627 ("qtxmlpatterns" ,qtxmlpatterns)))
2630 ;; FIXME: Building tests fails
2631 #:configure-flags '("-DBUILD_TESTS=off")
2633 (modify-phases %standard-phases
2634 (add-after 'unpack 'use-shiboken-dir-only
2635 (lambda _ (chdir "sources/shiboken2") #t))
2636 (add-before 'configure 'make-files-writable-and-update-timestamps
2638 ;; The build scripts need to modify some files in
2639 ;; the read-only source directory, and also attempts
2640 ;; to create Zip files which fails because the Zip
2641 ;; format does not support timestamps before 1980.
2642 (let ((circa-1980 (* 10 366 24 60 60)))
2643 (for-each (lambda (file)
2644 (make-file-writable file)
2645 (utime file circa-1980 circa-1980))
2648 (add-before 'configure 'set-build-env
2649 (lambda* (#:key inputs #:allow-other-keys)
2650 (let ((llvm (assoc-ref inputs "clang-toolchain")))
2651 (setenv "CLANG_INSTALL_DIR" llvm)
2653 (home-page "https://wiki.qt.io/Qt_for_Python")
2655 "Shiboken generates bindings for C++ libraries using CPython source code")
2657 "Shiboken generates bindings for C++ libraries using CPython source code")
2660 ;; The main code is GPL3 or LGPL3.
2661 ;; Examples are BSD-3.
2666 (define-public python-pyside-2
2668 (name "python-pyside-2")
2669 (version (package-version python-shiboken-2))
2670 (source (package-source python-shiboken-2))
2671 (build-system cmake-build-system)
2673 `(("libxml2" ,libxml2)
2674 ("libxslt" ,libxslt)
2675 ("clang-toolchain" ,clang-toolchain)
2677 ("qtdatavis3d" ,qtdatavis3d)
2678 ("qtlocation" ,qtlocation)
2679 ("qtmultimedia" ,qtmultimedia)
2680 ("qtquickcontrols" ,qtquickcontrols)
2681 ("qtscript" ,qtscript)
2682 ("qtscxml" ,qtscxml)
2683 ("qtsensors" ,qtsensors)
2684 ("qtspeech" ,qtspeech)
2686 ("qtwebchannel" ,qtwebchannel)
2687 ("qtwebsockets" ,qtwebsockets)
2688 ("qtx11extras" ,qtx11extras)
2689 ("qtxmlpatterns" ,qtxmlpatterns)))
2691 `(("cmake" ,cmake-minimal)
2692 ("python-shiboken-2" ,python-shiboken-2)
2693 ("python" ,python-wrapper)
2694 ("qttools" ,qttools)
2698 ;; FIXME: Building tests fail.
2700 (list "-DBUILD_TESTS=FALSE"
2701 (string-append "-DPYTHON_EXECUTABLE="
2702 (assoc-ref %build-inputs "python")
2705 (modify-phases %standard-phases
2706 (add-after 'unpack 'go-to-source-dir
2707 (lambda _ (chdir "sources/pyside2") #t))
2708 (add-before 'configure 'set-clang-dir
2709 (lambda* (#:key inputs #:allow-other-keys)
2710 (let ((clang (assoc-ref inputs "clang-toolchain")))
2711 (setenv "CLANG_INSTALL_DIR" clang)
2713 (home-page "https://wiki.qt.io/Qt_for_Python")
2715 "The Qt for Python product enables the use of Qt5 APIs in Python applications")
2717 "The Qt for Python product enables the use of Qt5 APIs in Python
2718 applications. It lets Python developers utilize the full potential of Qt,
2719 using the PySide2 module. The PySide2 module provides access to the
2720 individual Qt modules such as QtCore, QtGui,and so on. Qt for Python also
2721 comes with the Shiboken2 CPython binding code generator, which can be used to
2722 generate Python bindings for your C or C++ code.")
2726 ;; this file may be used under the terms of the GNU General
2727 ;; Public License version 2.0 or (at your option) the GNU
2728 ;; General Public license version 3 or any later version
2729 ;; approved by the KDE Free Qt Foundation.
2730 ;; Thus, it is currently v2 or v3, but no "+".
2734 (define-public python-pyside-2-tools
2736 (name "python-pyside-2-tools")
2737 (version (package-version python-shiboken-2))
2738 (source (package-source python-shiboken-2))
2739 (build-system cmake-build-system)
2741 `(("python-pyside-2" ,python-pyside-2)
2742 ("python-shiboken-2" ,python-shiboken-2)
2743 ("qtbase" ,qtbase)))
2745 `(("python" ,python-wrapper)))
2749 (list "-DBUILD_TESTS=off"
2750 (string-append "-DPYTHON_EXECUTABLE="
2751 (assoc-ref %build-inputs "python")
2753 #:phases (modify-phases %standard-phases
2754 (add-after 'unpack 'go-to-source-dir
2755 (lambda _ (chdir "sources/pyside2-tools") #t)))))
2756 (home-page "https://wiki.qt.io/Qt_for_Python")
2758 "Contains command line tools for PySide2")
2760 "Contains lupdate, rcc and uic tools for PySide2")
2761 (license license:gpl2)))
2763 (define-public libqglviewer
2765 (name "libqglviewer")
2770 (string-append "http://libqglviewer.com/src/libQGLViewer-"
2774 "023w7da1fyn2z69nbkp2rndiv886zahmc5cmira79zswxjfpklp2"))))
2775 (build-system gnu-build-system)
2777 '(#:tests? #f ; no check target
2779 (list (string-append "PREFIX="
2780 (assoc-ref %outputs "out")))
2782 (modify-phases %standard-phases
2784 (lambda* (#:key make-flags #:allow-other-keys)
2785 (apply invoke (cons "qmake" make-flags)))))))
2787 `(("qtbase" ,qtbase)
2788 ("qttools" ,qttools)))
2791 (home-page "http://libqglviewer.com")
2792 (synopsis "Qt-based C++ library for the creation of OpenGL 3D viewers")
2794 "@code{libQGLViewer} is a C++ library based on Qt that eases the creation
2795 of OpenGL 3D viewers.
2797 It provides some of the typical 3D viewer functionalities, such as the
2798 possibility to move the camera using the mouse, which lacks in most of the
2799 other APIs. Other features include mouse manipulated frames, interpolated
2800 keyFrames, object selection, stereo display, screenshot saving and much more.
2801 It can be used by OpenGL beginners as well as to create complex applications,
2802 being fully customizable and easy to extend.")
2803 ;; According to LICENSE, either version 2 or version 3 of the GNU GPL may
2805 (license (list license:gpl2 license:gpl3))))
2809 (let ((commit-ref "fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d")
2813 (version (git-version "1.6.0" revision commit-ref))
2818 (url "https://github.com/coin3d/soqt")
2821 (file-name (git-file-name name version))
2823 (base32 "16vikb3fy8rmk10sg5g0gy2c343hi3x7zccsga90ssnkzpq6m032"))))
2824 (build-system cmake-build-system)
2825 (arguments '(#:tests? #f)) ; There are no tests
2827 `(("pkg-config" ,pkg-config)
2830 `(("qtbase" ,qtbase)
2831 ("coin3D" ,coin3D-4)))
2832 (home-page "https://github.com/coin3d/soqt")
2833 (synopsis "Qt GUI component toolkit library for Coin")
2834 (description "SoQt is a Qt GUI component toolkit library for Coin. It is
2835 also compatible with SGI and TGS Open Inventor, and the API is based on the API
2836 of the InventorXt GUI component toolkit.")
2837 (license license:bsd-3))))