Commit | Line | Data |
---|---|---|
bd677c2d | 1 | ;;; GNU Guix --- Functional package management for GNU |
84ef83dd | 2 | ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr> |
5b490ab5 | 3 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> |
6fd5a80d | 4 | ;;; Copyright © 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org> |
2879e605 | 5 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
4a78fd46 | 6 | ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is> |
fc381a33 | 7 | ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be> |
3283f261 | 8 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
3befd0a9 | 9 | ;;; Copyright © 2017 Quiliro <quiliro@fsfla.org> |
506cbdb3 | 10 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
04162e83 | 11 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
359e30c9 | 12 | ;;; Copyright © 2018 Hartmut Goebel <h.goebel@crazy-compilers.com> |
0995a569 | 13 | ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org> |
bd677c2d AE |
14 | ;;; |
15 | ;;; This file is part of GNU Guix. | |
16 | ;;; | |
17 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
18 | ;;; under the terms of the GNU General Public License as published by | |
19 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
20 | ;;; your option) any later version. | |
21 | ;;; | |
22 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
23 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
25 | ;;; GNU General Public License for more details. | |
26 | ;;; | |
27 | ;;; You should have received a copy of the GNU General Public License | |
28 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
29 | ||
30 | (define-module (gnu packages qt) | |
225941b0 | 31 | #:use-module ((guix licenses) #:prefix license:) |
bd677c2d AE |
32 | #:use-module (guix packages) |
33 | #:use-module (guix download) | |
2879e605 | 34 | #:use-module (guix git-download) |
9e81af9e | 35 | #:use-module (guix build-system cmake) |
bd677c2d | 36 | #:use-module (guix build-system gnu) |
2456153a | 37 | #:use-module (guix build-system trivial) |
84ef83dd AE |
38 | #:use-module (guix packages) |
39 | #:use-module (guix utils) | |
1e9ed0e3 | 40 | #:use-module (gnu packages) |
b332e366 AE |
41 | #:use-module (gnu packages bison) |
42 | #:use-module (gnu packages compression) | |
2cba3d6f SB |
43 | #:use-module (gnu packages cups) |
44 | #:use-module (gnu packages databases) | |
aa8c0ada | 45 | #:use-module (gnu packages documentation) |
b332e366 | 46 | #:use-module (gnu packages fontutils) |
0009ed71 | 47 | #:use-module (gnu packages flex) |
bc8ede01 | 48 | #:use-module (gnu packages freedesktop) |
8b6a5e0f | 49 | #:use-module (gnu packages gl) |
b332e366 | 50 | #:use-module (gnu packages glib) |
0009ed71 SB |
51 | #:use-module (gnu packages gnuzilla) |
52 | #:use-module (gnu packages gperf) | |
04231311 | 53 | #:use-module (gnu packages gstreamer) |
f7fb0ccb | 54 | #:use-module (gnu packages gtk) |
b332e366 | 55 | #:use-module (gnu packages icu4c) |
e55354b8 | 56 | #:use-module (gnu packages image) |
b332e366 | 57 | #:use-module (gnu packages linux) |
04f8decf | 58 | #:use-module (gnu packages maths) |
0009ed71 SB |
59 | #:use-module (gnu packages pciutils) |
60 | #:use-module (gnu packages pcre) | |
b332e366 AE |
61 | #:use-module (gnu packages perl) |
62 | #:use-module (gnu packages pkg-config) | |
39fa8f6c | 63 | #:use-module (gnu packages pulseaudio) |
b332e366 | 64 | #:use-module (gnu packages python) |
44d10b1f | 65 | #:use-module (gnu packages python-xyz) |
8b6a5e0f | 66 | #:use-module (gnu packages ruby) |
51519fd3 | 67 | #:use-module (gnu packages sdl) |
cd0322a3 | 68 | #:use-module (gnu packages sqlite) |
cc2b77df | 69 | #:use-module (gnu packages tls) |
124351ef | 70 | #:use-module (gnu packages vulkan) |
0009ed71 SB |
71 | #:use-module (gnu packages xdisorg) |
72 | #:use-module (gnu packages xorg) | |
124351ef EF |
73 | #:use-module (gnu packages xml) |
74 | #:use-module (srfi srfi-1)) | |
bd677c2d | 75 | |
aa8c0ada TD |
76 | (define-public grantlee |
77 | (package | |
78 | (name "grantlee") | |
79 | (version "5.1.0") | |
80 | (source | |
81 | (origin | |
82 | (method url-fetch) | |
83 | (uri (string-append "https://github.com/steveire/grantlee/archive/v" | |
84 | version ".tar.gz")) | |
85 | (file-name (string-append name "-" version ".tar.gz")) | |
86 | (sha256 | |
87 | (base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq")))) | |
88 | (native-inputs | |
868b1a02 | 89 | ;; Optional: lcov and cccc, both are for code coverage |
aa8c0ada TD |
90 | `(("doxygen" ,doxygen))) |
91 | (inputs | |
92 | `(("qtbase" ,qtbase) | |
93 | ("qtscript" ,qtscript))) | |
94 | (build-system cmake-build-system) | |
95 | (arguments | |
96 | `(#:phases | |
97 | (modify-phases %standard-phases | |
868b1a02 HG |
98 | (add-before 'check 'check-setup |
99 | (lambda _ | |
100 | ;; make Qt render "offscreen", required for tests | |
101 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
102 | #t))))) | |
aa8c0ada TD |
103 | (home-page "https://github.com/steveire/grantlee") |
104 | (synopsis "Libraries for text templating with Qt") | |
105 | (description "Grantlee Templates can be used for theming and generation of | |
106 | other text such as code. The syntax uses the syntax of the Django template | |
107 | system, and the core design of Django is reused in Grantlee.") | |
108 | (license license:lgpl2.0+))) | |
109 | ||
b332e366 AE |
110 | (define-public qt |
111 | (package | |
112 | (name "qt") | |
7930cfc9 | 113 | (version "5.11.2") |
5acd59ee | 114 | (outputs '("out" "examples")) |
b332e366 AE |
115 | (source (origin |
116 | (method url-fetch) | |
f7fb0ccb AE |
117 | (uri |
118 | (string-append | |
119 | "http://download.qt.io/official_releases/qt/" | |
120 | (version-major+minor version) | |
121 | "/" version | |
f79c7e97 | 122 | "/single/qt-everywhere-src-" |
f7fb0ccb | 123 | version ".tar.xz")) |
b332e366 | 124 | (sha256 |
418c62ff | 125 | (base32 |
7930cfc9 | 126 | "10faac59jvz6dxxljdkaknlxazpnaxgvqdcszabfbbkc1f24n466")) |
af50b4ab | 127 | (patches (search-patches "qt-5-renameat2.patch")) |
14bcc1e1 AE |
128 | (modules '((guix build utils))) |
129 | (snippet | |
bc554b43 AE |
130 | '(begin |
131 | ;; Remove qtwebengine, which relies on a bundled copy of | |
132 | ;; chromium. Not only does it fail compilation in qt 5.5: | |
133 | ;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10: | |
134 | ;; error: cannot convert ‘bool’ to ‘boolean’ in return | |
135 | ;; it might also pose security problems. | |
136 | ;; Alternatively, we could use the "-skip qtwebengine" | |
137 | ;; configuration option. | |
138 | (delete-file-recursively "qtwebengine") | |
5acd59ee EF |
139 | ;; The following snippets are copied from their mondular-qt counterparts. |
140 | (for-each | |
141 | (lambda (dir) | |
142 | (delete-file-recursively (string-append "qtbase/src/3rdparty/" dir))) | |
143 | (list "double-conversion" "freetype" "harfbuzz-ng" | |
d28af199 | 144 | "libpng" "libjpeg" "pcre2" "sqlite" "xcb" |
5acd59ee EF |
145 | "xkbcommon" "zlib")) |
146 | (for-each | |
147 | (lambda (dir) | |
148 | (delete-file-recursively dir)) | |
149 | (list "qtimageformats/src/3rdparty" | |
150 | "qtmultimedia/examples/multimedia/spectrum/3rdparty" | |
151 | "qtwayland/examples" | |
f79c7e97 | 152 | "qtscxml/tests/3rdparty" |
5acd59ee EF |
153 | "qtcanvas3d/examples/canvas3d/3rdparty")) |
154 | ;; Tests depend on this example, which depends on the 3rd party code. | |
155 | (substitute* "qtmultimedia/examples/multimedia/multimedia.pro" | |
6cbee49d | 156 | (("spectrum") "#")) |
f79c7e97 EF |
157 | (substitute* "qtxmlpatterns/tests/auto/auto.pro" |
158 | (("qxmlquery") "# qxmlquery") | |
159 | (("xmlpatterns ") "# xmlpatterns")) | |
160 | (substitute* "qtwebglplugin/tests/plugins/platforms/platforms.pro" | |
161 | (("webgl") "# webgl")) | |
162 | (substitute* "qtscxml/tests/auto/auto.pro" | |
163 | (("scion") "#")) | |
164 | (substitute* "qtnetworkauth/tests/auto/auto.pro" | |
165 | (("oauth1 ") "# oauth1 ")) | |
166 | (substitute* "qtremoteobjects/tests/auto/qml/qml.pro" | |
167 | (("integration") "# integration") | |
168 | (("usertypes") "# usertypes")) | |
6cbee49d | 169 | #t)))) |
b332e366 | 170 | (build-system gnu-build-system) |
ef0cf53e AE |
171 | (propagated-inputs |
172 | `(("mesa" ,mesa))) | |
b332e366 | 173 | (inputs |
b332e366 | 174 | `(("alsa-lib" ,alsa-lib) |
5acd59ee | 175 | ("bluez" ,bluez) |
2cba3d6f | 176 | ("cups" ,cups) |
5acd59ee EF |
177 | ("dbus" ,dbus) |
178 | ("double-conversion" ,double-conversion) | |
0009ed71 | 179 | ("expat" ,expat) |
b332e366 AE |
180 | ("fontconfig" ,fontconfig) |
181 | ("freetype" ,freetype) | |
182 | ("glib" ,glib) | |
5acd59ee EF |
183 | ("gstreamer" ,gstreamer) |
184 | ("gst-plugins-base" ,gst-plugins-base) | |
f7fb0ccb | 185 | ("harfbuzz" ,harfbuzz) |
b332e366 | 186 | ("icu4c" ,icu4c) |
5acd59ee EF |
187 | ("jasper" ,jasper) |
188 | ("libinput" ,libinput-minimal) | |
f198ffd0 | 189 | ("libjpeg" ,libjpeg) |
2cba3d6f | 190 | ("libmng" ,libmng) |
0009ed71 | 191 | ("libpci" ,pciutils) |
b332e366 | 192 | ("libpng" ,libpng) |
5acd59ee EF |
193 | ("libtiff" ,libtiff) |
194 | ("libwebp" ,libwebp) | |
b332e366 | 195 | ("libx11" ,libx11) |
0009ed71 SB |
196 | ("libxcomposite" ,libxcomposite) |
197 | ("libxcursor" ,libxcursor) | |
5acd59ee | 198 | ("libxext" ,libxext) |
0009ed71 | 199 | ("libxfixes" ,libxfixes) |
b332e366 | 200 | ("libxi" ,libxi) |
0009ed71 | 201 | ("libxinerama" ,libxinerama) |
b332e366 | 202 | ("libxkbcommon" ,libxkbcommon) |
0009ed71 SB |
203 | ("libxml2" ,libxml2) |
204 | ("libxrandr" ,libxrandr) | |
b332e366 | 205 | ("libxrender" ,libxrender) |
0009ed71 SB |
206 | ("libxslt" ,libxslt) |
207 | ("libxtst" ,libxtst) | |
208 | ("mtdev" ,mtdev) | |
3283f261 | 209 | ("mariadb" ,mariadb) |
0009ed71 | 210 | ("nss" ,nss) |
b332e366 | 211 | ("openssl" ,openssl) |
2cba3d6f | 212 | ("postgresql" ,postgresql) |
39fa8f6c | 213 | ("pulseaudio" ,pulseaudio) |
5acd59ee | 214 | ("pcre2" ,pcre2) |
d28af199 | 215 | ("sqlite" ,sqlite-with-column-metadata) |
0009ed71 | 216 | ("udev" ,eudev) |
2cba3d6f | 217 | ("unixodbc" ,unixodbc) |
5acd59ee | 218 | ("wayland" ,wayland) |
b332e366 AE |
219 | ("xcb-util" ,xcb-util) |
220 | ("xcb-util-image" ,xcb-util-image) | |
221 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
222 | ("xcb-util-renderutil" ,xcb-util-renderutil) | |
223 | ("xcb-util-wm" ,xcb-util-wm) | |
224 | ("zlib" ,zlib))) | |
c4c4cc05 | 225 | (native-inputs |
0009ed71 SB |
226 | `(("bison" ,bison) |
227 | ("flex" ,flex) | |
228 | ("gperf" ,gperf) | |
0009ed71 SB |
229 | ("perl" ,perl) |
230 | ("pkg-config" ,pkg-config) | |
231 | ("python" ,python-2) | |
232 | ("ruby" ,ruby) | |
124351ef | 233 | ("vulkan-headers" ,vulkan-headers) |
ce0614dd | 234 | ("which" ,(@ (gnu packages base) which)))) |
b332e366 | 235 | (arguments |
2a43df22 EF |
236 | `(#:parallel-build? #f ; Triggers race condition in qtbase module on Hydra. |
237 | #:phases | |
cce28b0c | 238 | (modify-phases %standard-phases |
2470d779 AE |
239 | (add-after 'configure 'patch-bin-sh |
240 | (lambda _ | |
5acd59ee | 241 | (substitute* '("qtbase/configure" |
2470d779 AE |
242 | "qtbase/mkspecs/features/qt_functions.prf" |
243 | "qtbase/qmake/library/qmakebuiltins.cpp") | |
244 | (("/bin/sh") (which "sh"))) | |
245 | #t)) | |
cce28b0c AE |
246 | (replace 'configure |
247 | (lambda* (#:key outputs #:allow-other-keys) | |
5acd59ee EF |
248 | (let ((out (assoc-ref outputs "out")) |
249 | (examples (assoc-ref outputs "examples"))) | |
cce28b0c AE |
250 | (substitute* '("configure" "qtbase/configure") |
251 | (("/bin/pwd") (which "pwd"))) | |
252 | (substitute* "qtbase/src/corelib/global/global.pri" | |
253 | (("/bin/ls") (which "ls"))) | |
254 | ;; do not pass "--enable-fast-install", which makes the | |
255 | ;; configure process fail | |
3ea61f96 EF |
256 | (invoke |
257 | "./configure" | |
258 | "-verbose" | |
259 | "-prefix" out | |
260 | "-docdir" (string-append out "/share/doc/qt5") | |
261 | "-headerdir" (string-append out "/include/qt5") | |
262 | "-archdatadir" (string-append out "/lib/qt5") | |
263 | "-datadir" (string-append out "/share/qt5") | |
264 | "-examplesdir" (string-append | |
265 | examples "/share/doc/qt5/examples") ; 151MiB | |
266 | "-opensource" | |
267 | "-confirm-license" | |
d13c1d33 | 268 | |
3ea61f96 EF |
269 | ;; These features require higher versions of Linux than the |
270 | ;; minimum version of the glibc. See | |
271 | ;; src/corelib/global/minimum-linux_p.h. By disabling these | |
272 | ;; features Qt5 applications can be used on the oldest | |
273 | ;; kernels that the glibc supports, including the RHEL6 | |
274 | ;; (2.6.32) and RHEL7 (3.10) kernels. | |
275 | "-no-feature-getentropy" ; requires Linux 3.17 | |
276 | "-no-feature-renameat2" ; requires Linux 3.16 | |
d13c1d33 | 277 | |
3ea61f96 EF |
278 | ;; Do not build examples; for the time being, we |
279 | ;; prefer to save the space and build time. | |
280 | "-no-compile-examples" | |
281 | ;; Most "-system-..." are automatic, but some use | |
282 | ;; the bundled copy by default. | |
283 | "-system-sqlite" | |
284 | "-system-harfbuzz" | |
285 | "-system-pcre" | |
286 | ;; explicitly link with openssl instead of dlopening it | |
287 | "-openssl-linked" | |
288 | ;; explicitly link with dbus instead of dlopening it | |
289 | "-dbus-linked" | |
290 | ;; don't use the precompiled headers | |
291 | "-no-pch" | |
292 | ;; drop special machine instructions not supported | |
293 | ;; on all instances of the target | |
294 | ,@(if (string-prefix? "x86_64" | |
295 | (or (%current-target-system) | |
296 | (%current-system))) | |
297 | '() | |
298 | '("-no-sse2")) | |
299 | "-no-mips_dsp" | |
300 | "-no-mips_dspr2")))) | |
d13c1d33 EF |
301 | (add-after 'install 'patch-mkspecs |
302 | (lambda* (#:key outputs #:allow-other-keys) | |
303 | (let* ((out (assoc-ref outputs "out")) | |
304 | (archdata (string-append out "/lib/qt5")) | |
305 | (mkspecs (string-append archdata "/mkspecs")) | |
306 | (qt_config.prf (string-append | |
307 | mkspecs "/features/qt_config.prf"))) | |
308 | ;; For each Qt module, let `qmake' uses search paths in the | |
309 | ;; module directory instead of all in QT_INSTALL_PREFIX. | |
310 | (substitute* qt_config.prf | |
311 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
312 | "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))") | |
313 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") | |
314 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") | |
315 | (("\\$\\$\\[QT_HOST_LIBS\\]") | |
316 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") | |
317 | (("\\$\\$\\[QT_INSTALL_BINS\\]") | |
318 | "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))")) | |
319 | ||
320 | ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS. | |
321 | (substitute* (string-append mkspecs "/features/qt_functions.prf") | |
322 | (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2") | |
323 | "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})")) | |
324 | ||
325 | ;; Resolve qmake spec files within qtbase by absolute paths. | |
326 | (substitute* | |
327 | (map (lambda (file) | |
328 | (string-append mkspecs "/features/" file)) | |
329 | '("device_config.prf" "moc.prf" "qt_build_config.prf" | |
330 | "qt_config.prf" "winrt/package_manifest.prf")) | |
331 | (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata) | |
332 | (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)) | |
333 | #t))) | |
334 | (add-after 'unpack 'patch-paths | |
335 | ;; Use the absolute paths for dynamically loaded libs, otherwise | |
336 | ;; the lib will be searched in LD_LIBRARY_PATH which typically is | |
337 | ;; not set in guix. | |
338 | (lambda* (#:key inputs #:allow-other-keys) | |
339 | ;; libresolve | |
340 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
341 | "cross-libc" "libc")))) | |
342 | (substitute* '("qtbase/src/network/kernel/qdnslookup_unix.cpp" | |
343 | "qtbase/src/network/kernel/qhostinfo_unix.cpp") | |
344 | (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b) | |
345 | (string-append a glibc "/lib/lib" b)))) | |
346 | ;; X11/locale (compose path) | |
347 | (substitute* "qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp" | |
348 | ;; Don't search in /usr/…/X11/locale, … | |
349 | (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line) | |
350 | (string-append "// " line)) | |
351 | ;; … but use libx11's path | |
352 | (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b) | |
353 | (string-append a "\"" (assoc-ref inputs "libx11") b))) | |
354 | ;; libGL | |
355 | (substitute* "qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp" | |
356 | (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b) | |
357 | (string-append a (assoc-ref inputs "mesa") "/lib/lib" b))) | |
358 | ;; libXcursor | |
359 | (substitute* "qtbase/src/plugins/platforms/xcb/qxcbcursor.cpp" | |
360 | (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b) | |
361 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)) | |
362 | (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b) | |
363 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))) | |
364 | #t))))) | |
365 | (native-search-paths | |
366 | (list (search-path-specification | |
367 | (variable "QMAKEPATH") | |
368 | (files '("lib/qt5"))) | |
369 | (search-path-specification | |
370 | (variable "QML2_IMPORT_PATH") | |
371 | (files '("lib/qt5/qml"))) | |
372 | (search-path-specification | |
373 | (variable "QT_PLUGIN_PATH") | |
374 | (files '("lib/qt5/plugins"))) | |
375 | (search-path-specification | |
376 | (variable "XDG_DATA_DIRS") | |
377 | (files '("share"))) | |
378 | (search-path-specification | |
379 | (variable "XDG_CONFIG_DIRS") | |
380 | (files '("etc/xdg"))))) | |
381 | (home-page "https://www.qt.io/") | |
382 | (synopsis "Cross-platform GUI library") | |
383 | (description "Qt is a cross-platform application and UI framework for | |
384 | developers using C++ or QML, a CSS & JavaScript like language.") | |
385 | (license (list license:lgpl2.1 license:lgpl3)) | |
f47638a3 LC |
386 | |
387 | ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS; | |
388 | ;; see <http://hydra.gnu.org/build/112828>. | |
389 | ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>. | |
390 | (supported-systems (delete "mips64el-linux" %supported-systems)))) | |
1e9ed0e3 AE |
391 | |
392 | (define-public qt-4 | |
393 | (package (inherit qt) | |
d22b9397 | 394 | (version "4.8.7") |
1e9ed0e3 AE |
395 | (source (origin |
396 | (method url-fetch) | |
397 | (uri (string-append "http://download.qt-project.org/official_releases/qt/" | |
398 | (string-copy version 0 (string-rindex version #\.)) | |
399 | "/" version | |
89059aa1 | 400 | "/qt-everywhere-opensource-src-" |
1e9ed0e3 AE |
401 | version ".tar.gz")) |
402 | (sha256 | |
403 | (base32 | |
d22b9397 | 404 | "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272")) |
fc1adab1 | 405 | (patches (search-patches "qt4-ldflags.patch")) |
7431edea AE |
406 | (modules '((guix build utils))) |
407 | (snippet | |
408 | ;; Remove webkit module, which is not built. | |
6cbee49d MW |
409 | '(begin (delete-file-recursively "src/3rdparty/webkit") |
410 | #t)))) | |
124351ef EF |
411 | (inputs |
412 | `(,@(fold alist-delete | |
413 | (package-inputs qt) | |
414 | '("harfbuzz" "libjpeg")) | |
415 | ("libjpeg" ,libjpeg-8) | |
416 | ("libsm" ,libsm))) | |
417 | (native-inputs | |
418 | `(,@(fold alist-delete | |
419 | (package-native-inputs qt) | |
420 | '("vulkan-headers")))) | |
31580979 LC |
421 | |
422 | ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags, | |
423 | ;; but we can't make them a separate output because "out" and "examples" | |
424 | ;; would refer to each other. | |
425 | (outputs '("out" ;112MiB core + 37MiB examples | |
426 | "doc")) ;280MiB of HTML + code | |
1e9ed0e3 AE |
427 | (arguments |
428 | `(#:phases | |
cba632c4 LC |
429 | (modify-phases %standard-phases |
430 | (replace | |
1e9ed0e3 AE |
431 | 'configure |
432 | (lambda* (#:key outputs #:allow-other-keys) | |
31580979 LC |
433 | (let ((out (assoc-ref outputs "out")) |
434 | (doc (assoc-ref outputs "doc"))) | |
1e9ed0e3 | 435 | (substitute* '("configure") |
d2984346 | 436 | (("/bin/pwd") (which "pwd"))) |
1f71daf4 EF |
437 | (substitute* "src/corelib/global/global.pri" |
438 | (("/bin/ls") (which "ls"))) | |
d2984346 | 439 | |
852a5692 EF |
440 | (invoke |
441 | "./configure" | |
442 | "-verbose" | |
443 | "-prefix" out | |
444 | "-nomake" "examples demos" | |
445 | ;; Note: Don't pass '-docdir' since 'qmake' and | |
446 | ;; libQtCore would record its value, thereby defeating | |
447 | ;; the whole point of having a separate output. | |
448 | "-datadir" (string-append out "/share/qt-" ,version | |
449 | "/data") | |
450 | "-importdir" (string-append out "/lib/qt-4" | |
451 | "/imports") | |
452 | "-plugindir" (string-append out "/lib/qt-4" | |
453 | "/plugins") | |
454 | "-translationdir" (string-append out "/share/qt-" ,version | |
455 | "/translations") | |
456 | "-demosdir" (string-append out "/share/qt-" ,version | |
457 | "/demos") | |
458 | "-examplesdir" (string-append out "/share/qt-" ,version | |
459 | "/examples") | |
460 | "-opensource" | |
461 | "-confirm-license" | |
462 | ;; explicitly link with dbus instead of dlopening it | |
463 | "-dbus-linked" | |
464 | ;; Skip the webkit module; it fails to build on armhf | |
465 | ;; and, apart from that, may pose security risks. | |
466 | "-no-webkit" | |
467 | ;; don't use the precompiled headers | |
468 | "-no-pch" | |
469 | ;; drop special machine instructions not supported | |
470 | ;; on all instances of the target | |
471 | ,@(if (string-prefix? "x86_64" | |
472 | (or (%current-target-system) | |
473 | (%current-system))) | |
474 | '() | |
475 | '("-no-mmx" | |
476 | "-no-3dnow" | |
477 | "-no-sse" | |
478 | "-no-sse2")) | |
479 | "-no-sse3" | |
480 | "-no-ssse3" | |
481 | "-no-sse4.1" | |
482 | "-no-sse4.2" | |
483 | "-no-avx")))) | |
4b0f2ef7 LC |
484 | (add-after |
485 | 'install 'move-doc | |
486 | (lambda* (#:key outputs #:allow-other-keys) | |
487 | ;; Because of qt4-documentation-path.patch, documentation ends up | |
488 | ;; being installed in OUT. Move it to the right place. | |
489 | (let* ((out (assoc-ref outputs "out")) | |
490 | (doc (assoc-ref outputs "doc")) | |
491 | (olddoc (string-append out "/doc")) | |
492 | (docdir (string-append doc "/share/doc/qt-" ,version))) | |
493 | (mkdir-p (dirname docdir)) | |
494 | ||
495 | ;; Note: We can't use 'rename-file' here because OUT and DOC are | |
496 | ;; different "devices" due to bind-mounts. | |
497 | (copy-recursively olddoc docdir) | |
498 | (delete-file-recursively olddoc) | |
499 | #t)))))))) | |
84ef83dd | 500 | |
7868000f AE |
501 | (define-public qtbase |
502 | (package | |
503 | (name "qtbase") | |
7930cfc9 | 504 | (version "5.11.2") |
7868000f AE |
505 | (source (origin |
506 | (method url-fetch) | |
507 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
508 | (version-major+minor version) "/" version | |
1f52eb7b | 509 | "/submodules/" name "-everywhere-src-" |
7868000f AE |
510 | version ".tar.xz")) |
511 | (sha256 | |
c7386f4e | 512 | (base32 |
7930cfc9 | 513 | "01q1rn5rp9biq3z38953z2hgm4nirvp2jfv8wg7isnld8v1yg0b3")) |
64f390a4 | 514 | ;; Use TZDIR to avoid depending on package "tzdata". |
3bd83e6d | 515 | (patches (search-patches "qtbase-use-TZDIR.patch")) |
7868000f AE |
516 | (modules '((guix build utils))) |
517 | (snippet | |
924e6ddf | 518 | ;; corelib uses bundled harfbuzz, md4, md5, sha3 |
7868000f | 519 | '(begin |
924e6ddf EF |
520 | (for-each |
521 | (lambda (dir) | |
522 | (delete-file-recursively (string-append "src/3rdparty/" dir))) | |
523 | (list "double-conversion" "freetype" "harfbuzz-ng" | |
d28af199 | 524 | "libpng" "libjpeg" "pcre2" "sqlite" "xcb" |
924e6ddf EF |
525 | "xkbcommon" "zlib")) |
526 | #t)))) | |
7868000f | 527 | (build-system gnu-build-system) |
48d4ce6e | 528 | (propagated-inputs |
8075b623 SB |
529 | `(("mesa" ,mesa) |
530 | ("which" ,(@ (gnu packages base) which)))) | |
7868000f AE |
531 | (inputs |
532 | `(("alsa-lib" ,alsa-lib) | |
533 | ("cups" ,cups) | |
534 | ("dbus" ,dbus) | |
04f8decf | 535 | ("double-conversion" ,double-conversion) |
f66970a7 | 536 | ("eudev" ,eudev) |
7868000f AE |
537 | ("expat" ,expat) |
538 | ("fontconfig" ,fontconfig) | |
539 | ("freetype" ,freetype) | |
540 | ("glib" ,glib) | |
541 | ("harfbuzz" ,harfbuzz) | |
542 | ("icu4c" ,icu4c) | |
9ed9b44e | 543 | ("libinput" ,libinput-minimal) |
7868000f AE |
544 | ("libjpeg" ,libjpeg) |
545 | ("libmng" ,libmng) | |
546 | ("libpng" ,libpng) | |
547 | ("libx11" ,libx11) | |
548 | ("libxcomposite" ,libxcomposite) | |
549 | ("libxcursor" ,libxcursor) | |
550 | ("libxfixes" ,libxfixes) | |
551 | ("libxi" ,libxi) | |
552 | ("libxinerama" ,libxinerama) | |
553 | ("libxkbcommon" ,libxkbcommon) | |
554 | ("libxml2" ,libxml2) | |
555 | ("libxrandr" ,libxrandr) | |
556 | ("libxrender" ,libxrender) | |
557 | ("libxslt" ,libxslt) | |
558 | ("libxtst" ,libxtst) | |
559 | ("mtdev" ,mtdev) | |
07380d10 | 560 | ("mariadb" ,mariadb) |
7868000f AE |
561 | ("nss" ,nss) |
562 | ("openssl" ,openssl) | |
924e6ddf | 563 | ("pcre2" ,pcre2) |
7868000f AE |
564 | ("postgresql" ,postgresql) |
565 | ("pulseaudio" ,pulseaudio) | |
d28af199 | 566 | ("sqlite" ,sqlite-with-column-metadata) |
7868000f AE |
567 | ("unixodbc" ,unixodbc) |
568 | ("xcb-util" ,xcb-util) | |
569 | ("xcb-util-image" ,xcb-util-image) | |
570 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
571 | ("xcb-util-renderutil" ,xcb-util-renderutil) | |
572 | ("xcb-util-wm" ,xcb-util-wm) | |
573 | ("zlib" ,zlib))) | |
574 | (native-inputs | |
575 | `(("bison" ,bison) | |
576 | ("flex" ,flex) | |
577 | ("gperf" ,gperf) | |
578 | ("perl" ,perl) | |
579 | ("pkg-config" ,pkg-config) | |
580 | ("python" ,python-2) | |
124351ef | 581 | ("vulkan-headers" ,vulkan-headers) |
8075b623 | 582 | ("ruby" ,ruby))) |
7868000f AE |
583 | (arguments |
584 | `(#:phases | |
585 | (modify-phases %standard-phases | |
586 | (add-after 'configure 'patch-bin-sh | |
587 | (lambda _ | |
588 | (substitute* '("config.status" | |
589 | "configure" | |
590 | "mkspecs/features/qt_functions.prf" | |
591 | "qmake/library/qmakebuiltins.cpp") | |
592 | (("/bin/sh") (which "sh"))) | |
593 | #t)) | |
594 | (replace 'configure | |
595 | (lambda* (#:key outputs #:allow-other-keys) | |
596 | (let ((out (assoc-ref outputs "out"))) | |
597 | (substitute* "configure" | |
598 | (("/bin/pwd") (which "pwd"))) | |
599 | (substitute* "src/corelib/global/global.pri" | |
600 | (("/bin/ls") (which "ls"))) | |
7972d8a2 AE |
601 | ;; The configuration files for other Qt5 packages are searched |
602 | ;; through a call to "find_package" in Qt5Config.cmake, which | |
603 | ;; disables the use of CMAKE_PREFIX_PATH via the parameter | |
604 | ;; "NO_DEFAULT_PATH". Re-enable it so that the different | |
605 | ;; components can be installed in different places. | |
606 | (substitute* (find-files "." ".*\\.cmake") | |
607 | (("NO_DEFAULT_PATH") "")) | |
7868000f AE |
608 | ;; do not pass "--enable-fast-install", which makes the |
609 | ;; configure process fail | |
1f52eb7b EF |
610 | (invoke |
611 | "./configure" | |
612 | "-verbose" | |
613 | "-prefix" out | |
614 | "-docdir" (string-append out "/share/doc/qt5") | |
615 | "-headerdir" (string-append out "/include/qt5") | |
616 | "-archdatadir" (string-append out "/lib/qt5") | |
617 | "-datadir" (string-append out "/share/qt5") | |
618 | "-examplesdir" (string-append | |
619 | out "/share/doc/qt5/examples") | |
620 | "-opensource" | |
621 | "-confirm-license" | |
65a9f6b6 RW |
622 | |
623 | ;; These features require higher versions of Linux than the | |
624 | ;; minimum version of the glibc. See | |
625 | ;; src/corelib/global/minimum-linux_p.h. By disabling these | |
626 | ;; features Qt5 applications can be used on the oldest | |
627 | ;; kernels that the glibc supports, including the RHEL6 | |
628 | ;; (2.6.32) and RHEL7 (3.10) kernels. | |
629 | "-no-feature-getentropy" ; requires Linux 3.17 | |
65a9f6b6 | 630 | |
1f52eb7b EF |
631 | ;; Do not build examples; if desired, these could go |
632 | ;; into a separate output, but for the time being, we | |
633 | ;; prefer to save the space and build time. | |
634 | "-no-compile-examples" | |
635 | ;; Most "-system-..." are automatic, but some use | |
636 | ;; the bundled copy by default. | |
d28af199 | 637 | "-system-sqlite" |
1f52eb7b EF |
638 | "-system-harfbuzz" |
639 | "-system-pcre" | |
640 | ;; explicitly link with openssl instead of dlopening it | |
641 | "-openssl-linked" | |
642 | ;; explicitly link with dbus instead of dlopening it | |
643 | "-dbus-linked" | |
644 | ;; don't use the precompiled headers | |
645 | "-no-pch" | |
646 | ;; drop special machine instructions that do not have | |
647 | ;; runtime detection | |
648 | ,@(if (string-prefix? "x86_64" | |
649 | (or (%current-target-system) | |
650 | (%current-system))) | |
651 | '() | |
652 | '("-no-sse2")) | |
653 | "-no-mips_dsp" | |
654 | "-no-mips_dspr2")))) | |
8075b623 | 655 | (add-after 'install 'patch-mkspecs |
5ca6ef95 SB |
656 | (lambda* (#:key outputs #:allow-other-keys) |
657 | (let* ((out (assoc-ref outputs "out")) | |
8075b623 SB |
658 | (archdata (string-append out "/lib/qt5")) |
659 | (mkspecs (string-append archdata "/mkspecs")) | |
5ca6ef95 | 660 | (qt_config.prf (string-append |
6fc0e157 | 661 | mkspecs "/features/qt_config.prf"))) |
5ca6ef95 SB |
662 | ;; For each Qt module, let `qmake' uses search paths in the |
663 | ;; module directory instead of all in QT_INSTALL_PREFIX. | |
664 | (substitute* qt_config.prf | |
665 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
6fc0e157 | 666 | "$$clean_path($$replace(dir, mkspecs/modules, ../../include/qt5))") |
5ca6ef95 | 667 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") |
6fc0e157 | 668 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") |
5ca6ef95 | 669 | (("\\$\\$\\[QT_HOST_LIBS\\]") |
6fc0e157 | 670 | "$$clean_path($$replace(dir, mkspecs/modules, ../../lib))") |
5ca6ef95 | 671 | (("\\$\\$\\[QT_INSTALL_BINS\\]") |
6fc0e157 | 672 | "$$clean_path($$replace(dir, mkspecs/modules, ../../bin))")) |
8075b623 SB |
673 | |
674 | ;; Searches Qt tools in the current PATH instead of QT_HOST_BINS. | |
675 | (substitute* (string-append mkspecs "/features/qt_functions.prf") | |
676 | (("cmd = \\$\\$\\[QT_HOST_BINS\\]/\\$\\$2") | |
677 | "cmd = $$system(which $${2}.pl 2>/dev/null || which $${2})")) | |
678 | ||
679 | ;; Resolve qmake spec files within qtbase by absolute paths. | |
680 | (substitute* | |
681 | (map (lambda (file) | |
682 | (string-append mkspecs "/features/" file)) | |
683 | '("device_config.prf" "moc.prf" "qt_build_config.prf" | |
684 | "qt_config.prf" "winrt/package_manifest.prf")) | |
685 | (("\\$\\$\\[QT_HOST_DATA/get\\]") archdata) | |
686 | (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata)) | |
64f390a4 HG |
687 | #t))) |
688 | (add-after 'unpack 'patch-paths | |
689 | ;; Use the absolute paths for dynamically loaded libs, otherwise | |
690 | ;; the lib will be searched in LD_LIBRARY_PATH which typically is | |
691 | ;; not set in guix. | |
692 | (lambda* (#:key inputs #:allow-other-keys) | |
693 | ;; libresolve | |
694 | (let ((glibc (assoc-ref inputs ,(if (%current-target-system) | |
695 | "cross-libc" "libc")))) | |
696 | (substitute* '("src/network/kernel/qdnslookup_unix.cpp" | |
697 | "src/network/kernel/qhostinfo_unix.cpp") | |
698 | (("^\\s*(lib.setFileName\\(QLatin1String\\(\")(resolv\"\\)\\);)" _ a b) | |
699 | (string-append a glibc "/lib/lib" b)))) | |
700 | ;; X11/locale (compose path) | |
701 | (substitute* "src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp" | |
702 | ;; Don't search in /usr/…/X11/locale, … | |
703 | (("^\\s*m_possibleLocations.append\\(QStringLiteral\\(\"/usr/.*/X11/locale\"\\)\\);" line) | |
704 | (string-append "// " line)) | |
705 | ;; … but use libx11's path | |
706 | (("^\\s*(m_possibleLocations.append\\(QStringLiteral\\()X11_PREFIX \"(/.*/X11/locale\"\\)\\);)" _ a b) | |
707 | (string-append a "\"" (assoc-ref inputs "libx11") b))) | |
708 | ;; libGL | |
709 | (substitute* "src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp" | |
710 | (("^\\s*(QLibrary lib\\(QLatin1String\\(\")(GL\"\\)\\);)" _ a b) | |
711 | (string-append a (assoc-ref inputs "mesa") "/lib/lib" b))) | |
712 | ;; libXcursor | |
713 | (substitute* "src/plugins/platforms/xcb/qxcbcursor.cpp" | |
714 | (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b) | |
715 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)) | |
716 | (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b) | |
717 | (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))) | |
718 | #t))))) | |
5ca6ef95 SB |
719 | (native-search-paths |
720 | (list (search-path-specification | |
721 | (variable "QMAKEPATH") | |
6fc0e157 | 722 | (files '("lib/qt5"))) |
ed02e1fe DC |
723 | (search-path-specification |
724 | (variable "QML2_IMPORT_PATH") | |
6fc0e157 | 725 | (files '("lib/qt5/qml"))) |
ed02e1fe DC |
726 | (search-path-specification |
727 | (variable "QT_PLUGIN_PATH") | |
6fc0e157 | 728 | (files '("lib/qt5/plugins"))) |
ed02e1fe DC |
729 | (search-path-specification |
730 | (variable "XDG_DATA_DIRS") | |
731 | (files '("share"))) | |
732 | (search-path-specification | |
733 | (variable "XDG_CONFIG_DIRS") | |
734 | (files '("etc/xdg"))))) | |
7868000f AE |
735 | (home-page "https://www.qt.io/") |
736 | (synopsis "Cross-platform GUI library") | |
737 | (description "Qt is a cross-platform application and UI framework for | |
738 | developers using C++ or QML, a CSS & JavaScript like language.") | |
225941b0 | 739 | (license (list license:lgpl2.1 license:lgpl3)))) |
7868000f | 740 | |
19c17631 EF |
741 | (define-public qtsvg |
742 | (package (inherit qtbase) | |
743 | (name "qtsvg") | |
7930cfc9 | 744 | (version "5.11.2") |
19c17631 EF |
745 | (source (origin |
746 | (method url-fetch) | |
747 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
748 | (version-major+minor version) "/" version | |
1f52eb7b | 749 | "/submodules/" name "-everywhere-src-" |
19c17631 EF |
750 | version ".tar.xz")) |
751 | (sha256 | |
752 | (base32 | |
7930cfc9 | 753 | "0rni3cdcli91v7k8ra9s9phpznvkza8qqvcrv9yyfrmlapwbn5mw")))) |
48d4ce6e | 754 | (propagated-inputs `()) |
19c17631 EF |
755 | (native-inputs `(("perl" ,perl))) |
756 | (inputs | |
757 | `(("mesa" ,mesa) | |
758 | ("qtbase" ,qtbase) | |
759 | ("zlib" ,zlib))) | |
760 | (arguments | |
761 | `(#:phases | |
762 | (modify-phases %standard-phases | |
8075b623 | 763 | (add-before 'configure 'configure-qmake |
19c17631 | 764 | (lambda* (#:key inputs outputs #:allow-other-keys) |
8075b623 SB |
765 | (let* ((out (assoc-ref outputs "out")) |
766 | (qtbase (assoc-ref inputs "qtbase")) | |
767 | (tmpdir (string-append (getenv "TMPDIR"))) | |
768 | (qmake (string-append tmpdir "/qmake")) | |
769 | (qt.conf (string-append tmpdir "/qt.conf"))) | |
770 | ;; Use qmake with a customized qt.conf to override install | |
771 | ;; paths to $out. | |
772 | (symlink (which "qmake") qmake) | |
773 | (setenv "PATH" (string-append tmpdir ":" (getenv "PATH"))) | |
774 | (with-output-to-file qt.conf | |
775 | (lambda () | |
776 | (format #t "[Paths] | |
777 | Prefix=~a | |
778 | ArchData=lib/qt5 | |
779 | Data=share/qt5 | |
780 | Documentation=share/doc/qt5 | |
781 | Headers=include/qt5 | |
782 | Libraries=lib | |
783 | LibraryExecutables=lib/qt5/libexec | |
784 | Binaries=bin | |
785 | Tests=tests | |
786 | Plugins=lib/qt5/plugins | |
787 | Imports=lib/qt5/imports | |
788 | Qml2Imports=lib/qt5/qml | |
789 | Translations=share/qt5/translations | |
790 | Settings=etc/xdg | |
791 | Examples=share/doc/qt5/examples | |
792 | HostPrefix=~a | |
793 | HostData=lib/qt5 | |
794 | HostBinaries=bin | |
795 | HostLibraries=lib | |
b000294e SB |
796 | |
797 | [EffectiveSourcePaths] | |
798 | HostPrefix=~a | |
799 | HostData=lib/qt5 | |
800 | " out out qtbase))) | |
c195b5ba | 801 | #t))) |
8075b623 SB |
802 | (replace 'configure |
803 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
804 | ;; Valid QT_BUILD_PARTS variables are: | |
805 | ;; libs tools tests examples demos docs translations | |
1f52eb7b | 806 | (invoke "qmake" "QT_BUILD_PARTS = libs tools tests"))) |
8075b623 SB |
807 | (add-before 'check 'set-display |
808 | (lambda _ | |
809 | ;; make Qt render "offscreen", required for tests | |
810 | (setenv "QT_QPA_PLATFORM" "offscreen") | |
811 | #t))))) | |
96412f34 EF |
812 | (synopsis "Qt module for displaying SVGs") |
813 | (description "The QtSvg module provides classes for displaying the | |
814 | contents of SVG files."))) | |
19c17631 | 815 | |
9b694210 EF |
816 | (define-public qtimageformats |
817 | (package (inherit qtsvg) | |
818 | (name "qtimageformats") | |
7930cfc9 | 819 | (version "5.11.2") |
9b694210 EF |
820 | (source (origin |
821 | (method url-fetch) | |
822 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
823 | (version-major+minor version) "/" version | |
1f52eb7b | 824 | "/submodules/" name "-everywhere-src-" |
9b694210 EF |
825 | version ".tar.xz")) |
826 | (sha256 | |
827 | (base32 | |
7930cfc9 | 828 | "0s1s33k0wrnf9fi1wlm1kaq9hs1fx89597nhk53vzdfha42x3r97")) |
c04854da EF |
829 | (modules '((guix build utils))) |
830 | (snippet | |
1f52eb7b EF |
831 | '(begin |
832 | (delete-file-recursively "src/3rdparty") | |
833 | #t)))) | |
9b694210 EF |
834 | (native-inputs `()) |
835 | (inputs | |
a532a671 EF |
836 | `(("jasper" ,jasper) |
837 | ("libmng" ,libmng) | |
9b694210 EF |
838 | ("libtiff" ,libtiff) |
839 | ("libwebp" ,libwebp) | |
840 | ("mesa" ,mesa) | |
841 | ("qtbase" ,qtbase) | |
96412f34 EF |
842 | ("zlib" ,zlib))) |
843 | (synopsis "Additional Image Format plugins for Qt") | |
844 | (description "The QtImageFormats module contains plugins for adding | |
845 | support for MNG, TGA, TIFF and WBMP image formats."))) | |
9b694210 | 846 | |
f6c13613 EF |
847 | (define-public qtx11extras |
848 | (package (inherit qtsvg) | |
849 | (name "qtx11extras") | |
7930cfc9 | 850 | (version "5.11.2") |
f6c13613 EF |
851 | (source (origin |
852 | (method url-fetch) | |
853 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
854 | (version-major+minor version) "/" version | |
1f52eb7b | 855 | "/submodules/" name "-everywhere-src-" |
f6c13613 EF |
856 | version ".tar.xz")) |
857 | (sha256 | |
858 | (base32 | |
7930cfc9 | 859 | "12cha7pd3cjx7zr0l7rbi1j2pfwmfpdwc7w3dsqbyi1d0mhwl1zl")))) |
c195b5ba EF |
860 | (arguments |
861 | (substitute-keyword-arguments (package-arguments qtsvg) | |
862 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
f6c13613 EF |
863 | (native-inputs `(("perl" ,perl))) |
864 | (inputs | |
865 | `(("mesa" ,mesa) | |
96412f34 EF |
866 | ("qtbase" ,qtbase))) |
867 | (synopsis "Qt Extras for X11") | |
868 | (description "The QtX11Extras module includes the library to access X11 | |
869 | from within Qt 5."))) | |
f6c13613 | 870 | |
98eec712 EF |
871 | (define-public qtxmlpatterns |
872 | (package (inherit qtsvg) | |
873 | (name "qtxmlpatterns") | |
7930cfc9 | 874 | (version "5.11.2") |
98eec712 EF |
875 | (source (origin |
876 | (method url-fetch) | |
877 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
878 | (version-major+minor version) "/" version | |
1f52eb7b | 879 | "/submodules/" name "-everywhere-src-" |
98eec712 EF |
880 | version ".tar.xz")) |
881 | (sha256 | |
882 | (base32 | |
7930cfc9 | 883 | "0ik7m1a0shjsyzs8n9hfx8m9hy1p3wg505slcs0xznj0pa0gdmaz")))) |
c195b5ba EF |
884 | (arguments |
885 | (substitute-keyword-arguments (package-arguments qtsvg) | |
f66b3e15 EF |
886 | ((#:phases phases) |
887 | `(modify-phases ,phases | |
888 | (add-after 'unpack 'disable-network-tests | |
889 | (lambda _ (substitute* "tests/auto/auto.pro" | |
890 | (("qxmlquery") "# qxmlquery") | |
a20e00dd | 891 | (("xmlpatterns ") "# xmlpatterns")) |
f66b3e15 | 892 | #t)))))) |
98eec712 | 893 | (native-inputs `(("perl" ,perl))) |
96412f34 EF |
894 | (inputs `(("qtbase" ,qtbase))) |
895 | (synopsis "Qt XML patterns module") | |
896 | (description "The QtXmlPatterns module is a XQuery and XPath engine for | |
897 | XML and custom data models. It contains programs such as xmlpatterns and | |
898 | xmlpatternsvalidator."))) | |
98eec712 | 899 | |
e3a2ed81 EF |
900 | (define-public qtdeclarative |
901 | (package (inherit qtsvg) | |
902 | (name "qtdeclarative") | |
7930cfc9 | 903 | (version "5.11.2") |
e3a2ed81 EF |
904 | (source (origin |
905 | (method url-fetch) | |
906 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
907 | (version-major+minor version) "/" version | |
1f52eb7b | 908 | "/submodules/" name "-everywhere-src-" |
e3a2ed81 EF |
909 | version ".tar.xz")) |
910 | (sha256 | |
911 | (base32 | |
7930cfc9 | 912 | "1kgj6q53rk573yi47j32mn1mfk5ag98zvhv9qgrlb78y0gw8c392")))) |
c195b5ba EF |
913 | (arguments |
914 | (substitute-keyword-arguments (package-arguments qtsvg) | |
915 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
e3a2ed81 EF |
916 | (native-inputs |
917 | `(("perl" ,perl) | |
918 | ("pkg-config" ,pkg-config) | |
919 | ("python" ,python-2) | |
920 | ("qtsvg" ,qtsvg) | |
921 | ("qtxmlpatterns" ,qtxmlpatterns))) | |
922 | (inputs | |
923 | `(("mesa" ,mesa) | |
96412f34 EF |
924 | ("qtbase" ,qtbase))) |
925 | (synopsis "Qt QML module (Quick 2)") | |
926 | (description "The Qt QML module provides a framework for developing | |
927 | applications and libraries with the QML language. It defines and implements the | |
928 | language and engine infrastructure, and provides an API to enable application | |
929 | developers to extend the QML language with custom types and integrate QML code | |
930 | with JavaScript and C++."))) | |
e3a2ed81 | 931 | |
e98cb96d EF |
932 | (define-public qtconnectivity |
933 | (package (inherit qtsvg) | |
934 | (name "qtconnectivity") | |
7930cfc9 | 935 | (version "5.11.2") |
e98cb96d EF |
936 | (source (origin |
937 | (method url-fetch) | |
938 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
939 | (version-major+minor version) "/" version | |
1f52eb7b | 940 | "/submodules/" name "-everywhere-src-" |
e98cb96d EF |
941 | version ".tar.xz")) |
942 | (sha256 | |
943 | (base32 | |
7930cfc9 | 944 | "1ia21llw610wd7licdm81p8zpkrkvkc5yc7y4wplgg6k2jyip42q")))) |
e98cb96d EF |
945 | (native-inputs |
946 | `(("perl" ,perl) | |
947 | ("pkg-config" ,pkg-config) | |
948 | ("qtdeclarative" ,qtdeclarative))) | |
949 | (inputs | |
950 | `(("bluez" ,bluez) | |
96412f34 EF |
951 | ("qtbase" ,qtbase))) |
952 | (synopsis "Qt Connectivity module") | |
953 | (description "The Qt Connectivity modules provides modules for interacting | |
954 | with Bluetooth and NFC."))) | |
e98cb96d | 955 | |
cac893ec EF |
956 | (define-public qtwebsockets |
957 | (package (inherit qtsvg) | |
958 | (name "qtwebsockets") | |
7930cfc9 | 959 | (version "5.11.2") |
cac893ec EF |
960 | (source (origin |
961 | (method url-fetch) | |
962 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
963 | (version-major+minor version) "/" version | |
1f52eb7b | 964 | "/submodules/" name "-everywhere-src-" |
cac893ec EF |
965 | version ".tar.xz")) |
966 | (sha256 | |
967 | (base32 | |
7930cfc9 | 968 | "13cbr2pffv1hwvm8d8kzask0pyc2j3brgq23vi5i1i70kihrfqdf")))) |
c195b5ba EF |
969 | (arguments |
970 | (substitute-keyword-arguments (package-arguments qtsvg) | |
971 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
cac893ec EF |
972 | (native-inputs |
973 | `(("perl" ,perl) | |
974 | ("qtdeclarative" ,qtdeclarative))) | |
96412f34 EF |
975 | (inputs `(("qtbase" ,qtbase))) |
976 | (synopsis "Qt Web Sockets module") | |
977 | (description "WebSocket is a web-based protocol designed to enable two-way | |
978 | communication between a client application and a remote host. The Qt | |
979 | WebSockets module provides C++ and QML interfaces that enable Qt applications | |
980 | to act as a server that can process WebSocket requests, or a client that can | |
981 | consume data received from the server, or both."))) | |
cac893ec | 982 | |
3474767c EF |
983 | (define-public qtsensors |
984 | (package (inherit qtsvg) | |
985 | (name "qtsensors") | |
7930cfc9 | 986 | (version "5.11.2") |
3474767c EF |
987 | (source (origin |
988 | (method url-fetch) | |
989 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
990 | (version-major+minor version) "/" version | |
1f52eb7b | 991 | "/submodules/" name "-everywhere-src-" |
3474767c EF |
992 | version ".tar.xz")) |
993 | (sha256 | |
994 | (base32 | |
7930cfc9 | 995 | "1iv3gmk121myqdr64d9lf2m816ypxrb526gn0ssxx8gp4j4c69qf")))) |
202afee2 EF |
996 | (arguments |
997 | (substitute-keyword-arguments (package-arguments qtsvg) | |
5ea35b42 | 998 | ((#:parallel-tests? _ #f) #f) ; can lead to race condition |
202afee2 EF |
999 | ((#:phases phases) |
1000 | `(modify-phases ,phases | |
04162e83 | 1001 | (add-after 'unpack 'fix-tests |
202afee2 EF |
1002 | (lambda _ |
1003 | (substitute* "tests/auto/qsensorgestures_gestures/tst_sensorgestures_gestures.cpp" | |
04162e83 NG |
1004 | (("2000") "5000") ;lengthen test timeout |
1005 | (("QTest::newRow(\"twist\") << \"twist\"") "")) ;failing test | |
202afee2 | 1006 | #t)))))) |
3474767c EF |
1007 | (native-inputs |
1008 | `(("perl" ,perl) | |
1009 | ("qtdeclarative" ,qtdeclarative))) | |
96412f34 EF |
1010 | (inputs `(("qtbase" ,qtbase))) |
1011 | (synopsis "Qt Sensors module") | |
1012 | (description "The Qt Sensors API provides access to sensor hardware via QML | |
1013 | and C++ interfaces. The Qt Sensors API also provides a motion gesture | |
1014 | recognition API for devices."))) | |
3474767c | 1015 | |
15378f93 EF |
1016 | (define-public qtmultimedia |
1017 | (package (inherit qtsvg) | |
1018 | (name "qtmultimedia") | |
7930cfc9 | 1019 | (version "5.11.2") |
15378f93 EF |
1020 | (source (origin |
1021 | (method url-fetch) | |
1022 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1023 | (version-major+minor version) "/" version | |
1f52eb7b | 1024 | "/submodules/" name "-everywhere-src-" |
15378f93 EF |
1025 | version ".tar.xz")) |
1026 | (sha256 | |
1027 | (base32 | |
7930cfc9 | 1028 | "0vbjrxsdahgbgpc2zcvgg3mpijzd5kknz5clfcw2cq3310yqyq15")) |
63d8f08f EF |
1029 | (modules '((guix build utils))) |
1030 | (snippet | |
1031 | '(begin | |
1032 | (delete-file-recursively | |
c195b5ba EF |
1033 | "examples/multimedia/spectrum/3rdparty") |
1034 | ;; We also prevent the spectrum example from being built. | |
1035 | (substitute* "examples/multimedia/multimedia.pro" | |
6cbee49d MW |
1036 | (("spectrum") "#")) |
1037 | #t)))) | |
c195b5ba EF |
1038 | (arguments |
1039 | (substitute-keyword-arguments (package-arguments qtsvg) | |
04231311 RW |
1040 | ((#:phases phases) |
1041 | `(modify-phases ,phases | |
1042 | (replace 'configure | |
1043 | (lambda* (#:key outputs #:allow-other-keys) | |
1044 | (let ((out (assoc-ref outputs "out"))) | |
1f52eb7b EF |
1045 | (invoke "qmake" "QT_BUILD_PARTS = libs tools tests" |
1046 | (string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath," out "/lib -Wl,-rpath,") | |
1047 | (string-append "PREFIX=" out))))))) | |
04231311 | 1048 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests |
15378f93 EF |
1049 | (native-inputs |
1050 | `(("perl" ,perl) | |
1051 | ("pkg-config" ,pkg-config) | |
1052 | ("python" ,python-2) | |
1053 | ("qtdeclarative" ,qtdeclarative))) | |
1054 | (inputs | |
1055 | `(("alsa-lib" ,alsa-lib) | |
1056 | ("mesa" ,mesa) | |
1057 | ("pulseaudio" ,pulseaudio) | |
04231311 RW |
1058 | ("qtbase" ,qtbase) |
1059 | ;; Gstreamer is needed for the mediaplayer plugin | |
1060 | ("gstreamer" ,gstreamer) | |
96412f34 EF |
1061 | ("gst-plugins-base" ,gst-plugins-base))) |
1062 | (synopsis "Qt Multimedia module") | |
1063 | (description "The Qt Multimedia module provides set of APIs to play and | |
1064 | record media, and manage a collection of media content. It also contains a | |
1065 | set of plugins for interacting with pulseaudio and GStreamer."))) | |
15378f93 | 1066 | |
bc8ede01 EF |
1067 | (define-public qtwayland |
1068 | (package (inherit qtsvg) | |
1069 | (name "qtwayland") | |
7930cfc9 | 1070 | (version "5.11.2") |
bc8ede01 EF |
1071 | (source (origin |
1072 | (method url-fetch) | |
1073 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1074 | (version-major+minor version) "/" version | |
1f52eb7b | 1075 | "/submodules/" name "-everywhere-src-" |
bc8ede01 EF |
1076 | version ".tar.xz")) |
1077 | (sha256 | |
1078 | (base32 | |
7930cfc9 | 1079 | "0wdpxjr3zfmgcfg14zlwd8mjbc191pvlchj1xxd0lj30ldfy2daf")) |
924e6ddf EF |
1080 | (modules '((guix build utils))) |
1081 | (snippet | |
1082 | ;; The examples try to build and cause the build to fail | |
1f52eb7b EF |
1083 | '(begin |
1084 | (delete-file-recursively "examples") | |
1085 | #t)))) | |
6fc0e157 SB |
1086 | (arguments |
1087 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1088 | ((#:phases phases) | |
1089 | `(modify-phases ,phases | |
1090 | (add-before 'check 'set-ld-library-path | |
1091 | ;; <https://lists.gnu.org/archive/html/guix-devel/2017-09/msg00019.html> | |
1092 | ;; | |
1093 | ;; Make the uninstalled libQt5WaylandClient.so.5 available to the | |
1094 | ;; wayland platform plugin. | |
1095 | (lambda _ | |
1096 | (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/lib")) | |
1097 | #t)))))) | |
bc8ede01 EF |
1098 | (native-inputs |
1099 | `(("glib" ,glib) | |
1100 | ("perl" ,perl) | |
1101 | ("pkg-config" ,pkg-config) | |
1102 | ("qtdeclarative" ,qtdeclarative))) | |
1103 | (inputs | |
1104 | `(("fontconfig" ,fontconfig) | |
1105 | ("freetype" ,freetype) | |
1106 | ("libx11" ,libx11) | |
1107 | ("libxcomposite" ,libxcomposite) | |
1108 | ("libxext" ,libxext) | |
1109 | ("libxkbcommon" ,libxkbcommon) | |
1110 | ("libxrender" ,libxrender) | |
1111 | ("mesa" ,mesa) | |
1112 | ("mtdev" ,mtdev) | |
1113 | ("qtbase" ,qtbase) | |
96412f34 EF |
1114 | ("wayland" ,wayland))) |
1115 | (synopsis "Qt Wayland module") | |
1116 | (description "The Qt Wayland module provides the QtWayland client and | |
1117 | compositor libraries."))) | |
bc8ede01 | 1118 | |
00806f2b EF |
1119 | (define-public qtserialport |
1120 | (package (inherit qtsvg) | |
1121 | (name "qtserialport") | |
7930cfc9 | 1122 | (version "5.11.2") |
00806f2b EF |
1123 | (source (origin |
1124 | (method url-fetch) | |
1125 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1126 | (version-major+minor version) "/" version | |
1f52eb7b | 1127 | "/submodules/" name "-everywhere-src-" |
00806f2b EF |
1128 | version ".tar.xz")) |
1129 | (sha256 | |
1130 | (base32 | |
7930cfc9 | 1131 | "0vkgvicm67vds2iqmhnjsqwnx1f8zhbzc31w6q198i0x8b76j6xh")))) |
00806f2b | 1132 | (native-inputs `(("perl" ,perl))) |
33741e16 EF |
1133 | (inputs |
1134 | `(("qtbase" ,qtbase) | |
96412f34 | 1135 | ("eudev" ,eudev))) |
042f7c26 HG |
1136 | (arguments |
1137 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1138 | ((#:phases phases) | |
1139 | `(modify-phases ,phases | |
1140 | (add-after 'unpack 'patch-dlopen-paths | |
1141 | (lambda* (#:key inputs #:allow-other-keys) | |
1142 | (substitute* "src/serialport/qtudev_p.h" | |
1143 | ;; Use the absolute paths for dynamically loaded libs, | |
1144 | ;; otherwise the lib will be searched in LD_LIBRARY_PATH which | |
1145 | ;; typically is not set in guix. | |
1146 | (("^\\s*(udevLibrary->setFileNameAndVersion\\(QStringLiteral\\(\")(udev\"\\),\\s*[0-9]+\\);)" _ a b) | |
1147 | (string-append a (assoc-ref inputs "eudev") "/lib/lib" b))) | |
1148 | #t)))))) | |
96412f34 EF |
1149 | (synopsis "Qt Serial Port module") |
1150 | (description "The Qt Serial Port module provides the library for | |
1151 | interacting with serial ports from within Qt."))) | |
00806f2b | 1152 | |
a98ffab5 EF |
1153 | (define-public qtserialbus |
1154 | (package (inherit qtsvg) | |
1155 | (name "qtserialbus") | |
7930cfc9 | 1156 | (version "5.11.2") |
a98ffab5 EF |
1157 | (source (origin |
1158 | (method url-fetch) | |
1159 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1160 | (version-major+minor version) "/" version | |
1f52eb7b | 1161 | "/submodules/" name "-everywhere-src-" |
a98ffab5 EF |
1162 | version ".tar.xz")) |
1163 | (sha256 | |
1164 | (base32 | |
7930cfc9 | 1165 | "07k4g5qfh657das2f5i6ph0hl4bva13yzlmxnay7qpzqcb0w4x0p")))) |
a98ffab5 EF |
1166 | (inputs |
1167 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1168 | ("qtserialport" ,qtserialport))) |
1169 | (synopsis "Qt Serial Bus module") | |
1170 | (description "The Qt Serial Bus API provides classes and functions to | |
1171 | access the various industrial serial buses and protocols, such as CAN, ModBus, | |
1172 | and others."))) | |
a98ffab5 | 1173 | |
f5377013 EF |
1174 | (define-public qtwebchannel |
1175 | (package (inherit qtsvg) | |
1176 | (name "qtwebchannel") | |
7930cfc9 | 1177 | (version "5.11.2") |
f5377013 EF |
1178 | (source (origin |
1179 | (method url-fetch) | |
1180 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1181 | (version-major+minor version) "/" version | |
1f52eb7b | 1182 | "/submodules/" name "-everywhere-src-" |
f5377013 EF |
1183 | version ".tar.xz")) |
1184 | (sha256 | |
1185 | (base32 | |
7930cfc9 | 1186 | "1z02dhrd1h2rpdhww9py9dnhss80xwf45n568y7gr3gay7ldlpwl")))) |
f5377013 EF |
1187 | (native-inputs |
1188 | `(("perl" ,perl) | |
1189 | ("qtdeclarative" ,qtdeclarative) | |
1190 | ("qtwebsockets" ,qtwebsockets))) | |
96412f34 EF |
1191 | (inputs `(("qtbase" ,qtbase))) |
1192 | (synopsis "Web communication library for Qt") | |
1193 | (description "The Qt WebChannel module enables peer-to-peer communication | |
1194 | between the host (QML/C++ application) and the client (HTML/JavaScript | |
1195 | application). The transport mechanism is supported out of the box by the two | |
1196 | popular web engines, Qt WebKit 2 and Qt WebEngine."))) | |
f5377013 | 1197 | |
b5792b9c HG |
1198 | (define-public qtwebglplugin |
1199 | (package (inherit qtsvg) | |
1200 | (name "qtwebglplugin") | |
7930cfc9 | 1201 | (version "5.11.2") |
b5792b9c HG |
1202 | (source (origin |
1203 | (method url-fetch) | |
1204 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1205 | (version-major+minor version) "/" version | |
1206 | "/submodules/" name "-everywhere-src-" | |
1207 | version ".tar.xz")) | |
1208 | (sha256 | |
1209 | (base32 | |
7930cfc9 | 1210 | "0vazz9yr1qgpcq7p77vg9mrjxy6hjabvwj9irw5l5w7fmsk2ns0n")))) |
b6476ecc EF |
1211 | (arguments |
1212 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1213 | ((#:phases phases) | |
1214 | `(modify-phases ,phases | |
1215 | (add-after 'unpack 'disable-network-tests | |
1216 | (lambda _ (substitute* "tests/plugins/platforms/platforms.pro" | |
1217 | (("webgl") "# webgl")) | |
1218 | #t)))))) | |
b5792b9c HG |
1219 | (native-inputs '()) |
1220 | (inputs | |
1221 | `(("mesa" ,mesa) | |
1222 | ("qtbase" ,qtbase) | |
b6476ecc | 1223 | ("qtdeclarative" ,qtdeclarative) |
b5792b9c HG |
1224 | ("qtwebsockets" ,qtwebsockets))) |
1225 | (synopsis "QPA plugin for running an application via a browser using | |
1226 | streamed WebGL commands") | |
1227 | (description "Qt back end that uses WebGL for rendering. It allows Qt | |
1228 | applications (with some limitations) to run in a web browser that supports | |
1229 | WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any | |
1230 | compatible web browser without the use of plug-ins. The API is similar to | |
1231 | OpenGL ES 2.0 and can be used in HTML5 canvas elements"))) | |
1232 | ||
359e30c9 HG |
1233 | (define-public qtwebview |
1234 | (package (inherit qtsvg) | |
1235 | (name "qtwebview") | |
7930cfc9 | 1236 | (version "5.11.2") |
359e30c9 HG |
1237 | (source (origin |
1238 | (method url-fetch) | |
1239 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1240 | (version-major+minor version) "/" version | |
1241 | "/submodules/" name "-everywhere-src-" | |
1242 | version ".tar.xz")) | |
1243 | (sha256 | |
1244 | (base32 | |
7930cfc9 | 1245 | "1r30n9vjcgh2cd2iycfwwwpmbz7grrd3iqrc0afwnri3vylnfqil")))) |
359e30c9 HG |
1246 | (native-inputs |
1247 | `(("perl" ,perl))) | |
1248 | (inputs | |
1249 | `(("qtbase" ,qtbase) | |
1250 | ("qtdeclarative" ,qtdeclarative))) | |
1251 | (synopsis "Display web content in a QML application") | |
1252 | (description "Qt WebView provides a way to display web content in a QML | |
1253 | application without necessarily including a full web browser stack by using | |
1254 | native APIs where it makes sense."))) | |
1255 | ||
d5ca54ce EF |
1256 | (define-public qtlocation |
1257 | (package (inherit qtsvg) | |
1258 | (name "qtlocation") | |
7930cfc9 | 1259 | (version "5.11.2") |
d5ca54ce EF |
1260 | (source (origin |
1261 | (method url-fetch) | |
1262 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1263 | (version-major+minor version) "/" version | |
1f52eb7b | 1264 | "/submodules/" name "-everywhere-src-" |
d5ca54ce EF |
1265 | version ".tar.xz")) |
1266 | (sha256 | |
1267 | (base32 | |
7930cfc9 | 1268 | "0kh2c2ahg8xkpvqsva13i35ndsc0x0ypnmd6vix5pm5jvwg9366n")))) |
c195b5ba EF |
1269 | (arguments |
1270 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1271 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
d5ca54ce EF |
1272 | (native-inputs |
1273 | `(("perl" ,perl) | |
1274 | ("qtdeclarative" ,qtdeclarative) | |
9a935ef2 | 1275 | ("qtquickcontrols" ,qtquickcontrols) |
d5ca54ce | 1276 | ("qtserialport" ,qtserialport))) |
924e6ddf EF |
1277 | (inputs |
1278 | `(("icu4c" ,icu4c) | |
1279 | ("openssl" ,openssl) | |
1280 | ("qtbase" ,qtbase) | |
96412f34 EF |
1281 | ("zlib" ,zlib))) |
1282 | (synopsis "Qt Location and Positioning modules") | |
1283 | (description "The Qt Location module provides an interface for location, | |
1284 | positioning and geolocation plugins."))) | |
d5ca54ce | 1285 | |
d438c968 EF |
1286 | (define-public qttools |
1287 | (package (inherit qtsvg) | |
1288 | (name "qttools") | |
7930cfc9 | 1289 | (version "5.11.2") |
d438c968 EF |
1290 | (source (origin |
1291 | (method url-fetch) | |
1292 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1293 | (version-major+minor version) "/" version | |
1f52eb7b | 1294 | "/submodules/" name "-everywhere-src-" |
d438c968 EF |
1295 | version ".tar.xz")) |
1296 | (sha256 | |
1297 | (base32 | |
7930cfc9 | 1298 | "1f1iqvksrlgkxdbagb6vvjib3argbv9l7iis6ymb8n0rfwn37s7h")))) |
c195b5ba EF |
1299 | (arguments |
1300 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1301 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
d438c968 EF |
1302 | (native-inputs |
1303 | `(("perl" ,perl) | |
124351ef EF |
1304 | ("qtdeclarative" ,qtdeclarative) |
1305 | ("vulkan-headers" ,vulkan-headers))) | |
d438c968 EF |
1306 | (inputs |
1307 | `(("mesa" ,mesa) | |
96412f34 EF |
1308 | ("qtbase" ,qtbase))) |
1309 | (synopsis "Qt Tools and Designer modules") | |
1310 | (description "The Qt Tools module provides a set of applications to browse | |
1311 | the documentation, translate applications, generate help files and other stuff | |
1312 | that helps in Qt development."))) | |
d438c968 | 1313 | |
4742c4de EF |
1314 | (define-public qtscript |
1315 | (package (inherit qtsvg) | |
1316 | (name "qtscript") | |
7930cfc9 | 1317 | (version "5.11.2") |
4742c4de EF |
1318 | (source (origin |
1319 | (method url-fetch) | |
1320 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1321 | (version-major+minor version) "/" version | |
1f52eb7b | 1322 | "/submodules/" name "-everywhere-src-" |
4742c4de EF |
1323 | version ".tar.xz")) |
1324 | (sha256 | |
1325 | (base32 | |
7930cfc9 | 1326 | "0xprhd1brn30dqf5vy4inqgzpq48i8nlc428x9rr8fk5hdm4dhmj")) |
7c5cf7a2 | 1327 | (patches (search-patches "qtscript-disable-tests.patch")))) |
4742c4de EF |
1328 | (native-inputs |
1329 | `(("perl" ,perl) | |
1330 | ("qttools" ,qttools))) | |
1331 | (inputs | |
96412f34 EF |
1332 | `(("qtbase" ,qtbase))) |
1333 | (synopsis "Qt Script module") | |
1334 | (description "Qt provides support for application scripting with ECMAScript. | |
1335 | The following guides and references cover aspects of programming with | |
1336 | ECMAScript and Qt."))) | |
4742c4de | 1337 | |
ae0e5133 DC |
1338 | (define-public qtquickcontrols |
1339 | (package (inherit qtsvg) | |
1340 | (name "qtquickcontrols") | |
7930cfc9 | 1341 | (version "5.11.2") |
ae0e5133 DC |
1342 | (source (origin |
1343 | (method url-fetch) | |
1344 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1345 | (version-major+minor version) "/" version | |
1f52eb7b | 1346 | "/submodules/" name "-everywhere-src-" |
ae0e5133 DC |
1347 | version ".tar.xz")) |
1348 | (sha256 | |
1349 | (base32 | |
7930cfc9 | 1350 | "1q11nr85436xzrf4mbrbav306hrz0s2qaclqhhb0g88vzcq2wxww")))) |
c195b5ba EF |
1351 | (arguments |
1352 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1353 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
ae0e5133 DC |
1354 | (inputs |
1355 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1356 | ("qtdeclarative" ,qtdeclarative))) |
1357 | (synopsis "Qt Quick Controls and other Quick modules") | |
1358 | (description "The QtScript module provides classes for making Qt | |
1359 | applications scriptable. This module provides a set of extra components that | |
1360 | can be used to build complete interfaces in Qt Quick."))) | |
ae0e5133 | 1361 | |
42da1492 DC |
1362 | (define-public qtquickcontrols2 |
1363 | (package (inherit qtsvg) | |
1364 | (name "qtquickcontrols2") | |
7930cfc9 | 1365 | (version "5.11.2") |
42da1492 DC |
1366 | (source (origin |
1367 | (method url-fetch) | |
1368 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1369 | (version-major+minor version) "/" version | |
1f52eb7b | 1370 | "/submodules/" name "-everywhere-src-" |
42da1492 DC |
1371 | version ".tar.xz")) |
1372 | (sha256 | |
1373 | (base32 | |
7930cfc9 | 1374 | "116b5nhmsx898626s37r446yci7kxd3k7xap1dh9spqklkwlj1da")))) |
c195b5ba EF |
1375 | (arguments |
1376 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1377 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
42da1492 DC |
1378 | (inputs |
1379 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1380 | ("qtdeclarative" ,qtdeclarative))) |
1381 | (synopsis "Qt Quick Controls 2 and other Quick 2 modules") | |
1382 | (description "The Qt Quick Controls 2 module contains the Qt Labs Platform | |
1383 | module that provides platform integration: native dialogs, menus and menu bars, | |
1384 | and tray icons. It falls back to Qt Widgets when a native implementation is | |
1385 | not available."))) | |
42da1492 | 1386 | |
4e4ed0ee DC |
1387 | (define-public qtgraphicaleffects |
1388 | (package (inherit qtsvg) | |
1389 | (name "qtgraphicaleffects") | |
7930cfc9 | 1390 | (version "5.11.2") |
4e4ed0ee DC |
1391 | (source (origin |
1392 | (method url-fetch) | |
1393 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1394 | (version-major+minor version) "/" version | |
1f52eb7b | 1395 | "/submodules/" name "-everywhere-src-" |
4e4ed0ee DC |
1396 | version ".tar.xz")) |
1397 | (sha256 | |
1398 | (base32 | |
7930cfc9 | 1399 | "1zd9wjh2hhd6lby0z3ak0ff6zkbv73hh0drrg9qp2yrgjfismp59")))) |
c195b5ba EF |
1400 | (arguments |
1401 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1402 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
4e4ed0ee DC |
1403 | (inputs |
1404 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1405 | ("qtdeclarative" ,qtdeclarative))) |
1406 | (synopsis "Qt Graphical Effects module") | |
1407 | (description "The Qt Graphical Effects module provides a set of QML types | |
1408 | for adding visually impressive and configurable effects to user interfaces. | |
1409 | Effects are visual items that can be added to Qt Quick user interface as UI | |
1410 | components. The API consists of over 20 effects provided as separate QML | |
1411 | types. The effects cover functional areas such as blending, masking, blurring, | |
1412 | coloring, and many more."))) | |
4e4ed0ee | 1413 | |
843bdfb7 | 1414 | (define-public qtdeclarative-render2d |
a20e00dd | 1415 | ;; As of Qt-5.8.0 this module has been merged into qtdeclarative |
843bdfb7 EF |
1416 | (package (inherit qtsvg) |
1417 | (name "qtdeclarative-render2d") | |
1418 | (version "5.7.1") | |
1419 | (source (origin | |
1420 | (method url-fetch) | |
1421 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1422 | (version-major+minor version) "/" version | |
1f52eb7b | 1423 | "/submodules/" name "-everywhere-src-" |
843bdfb7 EF |
1424 | version ".tar.xz")) |
1425 | (sha256 | |
1426 | (base32 | |
1427 | "0zwch9vn17f3bpy300jcfxx6cx9qymk5j7khx0x9k1xqid4166c3")) | |
1428 | (modules '((guix build utils))) | |
1429 | (snippet | |
1f52eb7b EF |
1430 | '(begin |
1431 | (delete-file-recursively "tools/opengldummy/3rdparty") | |
1432 | #t)))) | |
843bdfb7 EF |
1433 | (native-inputs `()) |
1434 | (inputs | |
1435 | `(("qtbase" ,qtbase) | |
a20e00dd | 1436 | ("qtdeclarative" ,qtdeclarative))) |
96412f34 EF |
1437 | (synopsis "Qt Declarative Render module") |
1438 | (description "The Qt Declarative Render 2D module provides a Raster | |
1439 | backend for QtQuick scene graph.") | |
a20e00dd | 1440 | (properties `((superseded . ,qtdeclarative))))) |
843bdfb7 | 1441 | |
51519fd3 EF |
1442 | (define-public qtgamepad |
1443 | (package (inherit qtsvg) | |
1444 | (name "qtgamepad") | |
7930cfc9 | 1445 | (version "5.11.2") |
51519fd3 EF |
1446 | (source (origin |
1447 | (method url-fetch) | |
1448 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1449 | (version-major+minor version) "/" version | |
1f52eb7b | 1450 | "/submodules/" name "-everywhere-src-" |
51519fd3 EF |
1451 | version ".tar.xz")) |
1452 | (sha256 | |
1453 | (base32 | |
7930cfc9 | 1454 | "076874iyadj7pkprlk24h257nb8i4sni9c6kbixm5zrr2y73fbxf")))) |
51519fd3 EF |
1455 | (native-inputs |
1456 | `(("perl" ,perl) | |
1457 | ("pkg-config" ,pkg-config))) | |
1458 | (inputs | |
1459 | `(("fontconfig" ,fontconfig) | |
1460 | ("freetype" ,freetype) | |
1461 | ("libxrender" ,libxrender) | |
1462 | ("sdl2" ,sdl2) | |
1463 | ("qtbase" ,qtbase) | |
96412f34 EF |
1464 | ("qtdeclarative" ,qtdeclarative))) |
1465 | (synopsis "Qt Gamepad module") | |
1466 | (description "The Qt Gamepad module is an add-on library that enables Qt | |
1467 | applications to support the use of gamepad hardware and in some cases remote | |
1468 | control equipment. The module provides both QML and C++ interfaces. The | |
1469 | primary target audience are embedded devices with fullscreen user interfaces, | |
1470 | and mobile applications targeting TV-like form factors."))) | |
51519fd3 | 1471 | |
56cd88fd EF |
1472 | (define-public qtscxml |
1473 | (package (inherit qtsvg) | |
1474 | (name "qtscxml") | |
7930cfc9 | 1475 | (version "5.11.2") |
56cd88fd EF |
1476 | (source (origin |
1477 | (method url-fetch) | |
1478 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1479 | (version-major+minor version) "/" version | |
1f52eb7b | 1480 | "/submodules/" name "-everywhere-src-" |
56cd88fd EF |
1481 | version ".tar.xz")) |
1482 | (sha256 | |
1483 | (base32 | |
7930cfc9 | 1484 | "197p5x1dadgjb39pd2vw60r63lvz68i0pm5i8xbyzgzm94hwn9fn")) |
56cd88fd EF |
1485 | (modules '((guix build utils))) |
1486 | (snippet | |
c195b5ba EF |
1487 | '(begin |
1488 | (delete-file-recursively "tests/3rdparty") | |
1489 | ;; the scion test refers to the bundled 3rd party test code. | |
1490 | (substitute* "tests/auto/auto.pro" | |
6cbee49d MW |
1491 | (("scion") "#")) |
1492 | #t)))) | |
56cd88fd EF |
1493 | (inputs |
1494 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1495 | ("qtdeclarative" ,qtdeclarative))) |
1496 | (synopsis "Qt SCXML module") | |
1497 | (description "The Qt SCXML module provides functionality to create state | |
1498 | machines from SCXML files. This includes both dynamically creating state | |
1499 | machines (loading the SCXML file and instantiating states and transitions) and | |
1500 | generating a C++ file that has a class implementing the state machine. It | |
1501 | also contains functionality to support data models and executable content."))) | |
56cd88fd | 1502 | |
de5e0180 EF |
1503 | (define-public qtpurchasing |
1504 | (package (inherit qtsvg) | |
1505 | (name "qtpurchasing") | |
7930cfc9 | 1506 | (version "5.11.2") |
de5e0180 EF |
1507 | (source (origin |
1508 | (method url-fetch) | |
1509 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1510 | (version-major+minor version) "/" version | |
1f52eb7b | 1511 | "/submodules/" name "-everywhere-src-" |
de5e0180 EF |
1512 | version ".tar.xz")) |
1513 | (sha256 | |
1514 | (base32 | |
7930cfc9 | 1515 | "1xld1yx085mhnqdipy29g2yy5af67hfm0wy4mvj7pl6y5qj8jw9d")))) |
de5e0180 EF |
1516 | (inputs |
1517 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1518 | ("qtdeclarative" ,qtdeclarative))) |
1519 | (synopsis "Qt Purchasing module") | |
1520 | (description "The Qt Purchasing module provides and in-app API for | |
1521 | purchasing goods and services."))) | |
de5e0180 | 1522 | |
173b54b9 EF |
1523 | (define-public qtcanvas3d |
1524 | (package (inherit qtsvg) | |
1525 | (name "qtcanvas3d") | |
7930cfc9 | 1526 | (version "5.11.2") |
173b54b9 EF |
1527 | (source (origin |
1528 | (method url-fetch) | |
1529 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1530 | (version-major+minor version) "/" version | |
1f52eb7b | 1531 | "/submodules/" name "-everywhere-src-" |
173b54b9 EF |
1532 | version ".tar.xz")) |
1533 | (sha256 | |
1534 | (base32 | |
7930cfc9 | 1535 | "0h7arss7wr0jwl87kiwgbf0nlcgpbriyf7cnv9j4h7g8d09a777x")) |
173b54b9 EF |
1536 | (modules '((guix build utils))) |
1537 | (snippet | |
1f52eb7b EF |
1538 | '(begin |
1539 | (delete-file-recursively "examples/canvas3d/3rdparty") | |
1540 | #t)))) | |
c195b5ba EF |
1541 | (arguments |
1542 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1543 | ;; Building the tests depends on the bundled 3rd party javascript files, | |
1544 | ;; and the test phase fails to import QtCanvas3D, causing the phase to | |
1545 | ;; fail, so we skip building them for now. | |
1546 | ((#:phases phases) | |
1547 | `(modify-phases ,phases | |
1548 | (replace 'configure | |
1549 | (lambda* (#:key outputs #:allow-other-keys) | |
1550 | (let ((out (assoc-ref outputs "out"))) | |
1f52eb7b EF |
1551 | (invoke "qmake" "QT_BUILD_PARTS = libs tools" |
1552 | (string-append "PREFIX=" out))))))) | |
c195b5ba | 1553 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests |
173b54b9 EF |
1554 | (native-inputs `()) |
1555 | (inputs | |
1556 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1557 | ("qtdeclarative" ,qtdeclarative))) |
1558 | (synopsis "Qt Canvas 3D module") | |
1559 | (description "The Qt Canvas 3D module provides a way to make WebGL-like 3D | |
1560 | drawing calls from Qt Quick JavaScript."))) | |
173b54b9 | 1561 | |
68bbe14b EF |
1562 | (define-public qtcharts |
1563 | (package (inherit qtsvg) | |
1564 | (name "qtcharts") | |
7930cfc9 | 1565 | (version "5.11.2") |
68bbe14b EF |
1566 | (source (origin |
1567 | (method url-fetch) | |
1568 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1569 | (version-major+minor version) "/" version | |
1f52eb7b | 1570 | "/submodules/" name "-everywhere-src-" |
68bbe14b EF |
1571 | version ".tar.xz")) |
1572 | (sha256 | |
1573 | (base32 | |
7930cfc9 | 1574 | "0551qfqnsfiy8kb1ng2v0yn7s6ggy7ghcmis983sbzxzjv2i58zn")))) |
c195b5ba EF |
1575 | (arguments |
1576 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1577 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
68bbe14b EF |
1578 | (inputs |
1579 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1580 | ("qtdeclarative" ,qtdeclarative))) |
1581 | (synopsis "Qt Charts module") | |
1582 | (description "The Qt Charts module provides a set of easy to use chart | |
1583 | components. It uses the Qt Graphics View Framework, therefore charts can be | |
1584 | easily integrated to modern user interfaces. Qt Charts can be used as QWidgets, | |
1585 | QGraphicsWidget, or QML types. Users can easily create impressive graphs by | |
9c2c524d EF |
1586 | selecting one of the charts themes.") |
1587 | (license license:gpl3))) | |
68bbe14b | 1588 | |
a69945a7 EF |
1589 | (define-public qtdatavis3d |
1590 | (package (inherit qtsvg) | |
1591 | (name "qtdatavis3d") | |
7930cfc9 | 1592 | (version "5.11.2") |
a69945a7 EF |
1593 | (source (origin |
1594 | (method url-fetch) | |
1595 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1596 | (version-major+minor version) "/" version | |
1f52eb7b | 1597 | "/submodules/" name "-everywhere-src-" |
a69945a7 EF |
1598 | version ".tar.xz")) |
1599 | (sha256 | |
1600 | (base32 | |
7930cfc9 | 1601 | "05pzvrhvxhxjlav4axrhwlnxjzlr7mi8k3f06g59ryrwmb99kd37")))) |
c195b5ba EF |
1602 | (arguments |
1603 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1604 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
a69945a7 EF |
1605 | (inputs |
1606 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1607 | ("qtdeclarative" ,qtdeclarative))) |
1608 | (synopsis "Qt Data Visualization module") | |
1609 | (description "The Qt Data Visualization module provides a way to visualize | |
1610 | data in 3D as bar, scatter, and surface graphs. It is especially useful for | |
1611 | visualizing depth maps and large quantities of rapidly changing data, such as | |
1612 | data received from multiple sensors. The look and feel of graphs can be | |
9c2c524d EF |
1613 | customized by using themes or by adding custom items and labels to them.") |
1614 | (license license:gpl3))) | |
f47d2793 EF |
1615 | |
1616 | (define-public qtnetworkauth | |
1617 | (package (inherit qtsvg) | |
1618 | (name "qtnetworkauth") | |
7930cfc9 | 1619 | (version "5.11.2") |
f47d2793 EF |
1620 | (source (origin |
1621 | (method url-fetch) | |
1622 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1623 | (version-major+minor version) "/" version | |
1f52eb7b | 1624 | "/submodules/" name "-everywhere-src-" |
f47d2793 EF |
1625 | version ".tar.xz")) |
1626 | (sha256 | |
1627 | (base32 | |
7930cfc9 | 1628 | "1zmpvkhf2kmnr8vsa6jq675d5cpnmsg3f8yds6g91yq1g3prqdvr")))) |
f18c9470 EF |
1629 | (arguments |
1630 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1631 | ((#:phases phases) | |
1632 | `(modify-phases ,phases | |
1633 | (add-after 'unpack 'remove-failing-test | |
1634 | (lambda _ | |
1635 | ;; These tests can't find their test data. | |
1636 | (substitute* "tests/auto/auto.pro" | |
1637 | (("oauth1 ") "# oauth1 ")) | |
1638 | #t)))))) | |
f47d2793 | 1639 | (inputs |
96412f34 EF |
1640 | `(("qtbase" ,qtbase))) |
1641 | (synopsis "Qt Network Authorization module") | |
1642 | (description "The Qt Network Authorization module provides an | |
1643 | implementation of OAuth and OAuth2 authenticathon methods for Qt."))) | |
213238d9 EF |
1644 | |
1645 | (define-public qtremoteobjects | |
1646 | (package (inherit qtsvg) | |
1647 | (name "qtremoteobjects") | |
7930cfc9 | 1648 | (version "5.11.2") |
213238d9 EF |
1649 | (source (origin |
1650 | (method url-fetch) | |
1651 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1652 | (version-major+minor version) "/" version | |
1f52eb7b | 1653 | "/submodules/" name "-everywhere-src-" |
213238d9 EF |
1654 | version ".tar.xz")) |
1655 | (sha256 | |
1656 | (base32 | |
7930cfc9 | 1657 | "06awsaf15rch1y9p2q9kdlmlaa8g28whbzf04b10zfflyijnvg7j")))) |
1f52eb7b EF |
1658 | (arguments |
1659 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1660 | ((#:phases phases) | |
1661 | `(modify-phases ,phases | |
1662 | (add-after 'unpack 'remove-failing-test | |
1663 | (lambda _ | |
1664 | ;; This test can't find its imports. | |
1665 | (substitute* "tests/auto/qml/qml.pro" | |
b6476ecc EF |
1666 | (("integration") "# integration") |
1667 | (("usertypes") "# usertypes")) | |
1f52eb7b | 1668 | #t)))))) |
213238d9 EF |
1669 | (inputs |
1670 | `(("qtbase" ,qtbase) | |
96412f34 EF |
1671 | ("qtdeclarative" ,qtdeclarative))) |
1672 | (synopsis "Qt Remote Objects module") | |
1673 | (description "The Qt Remote Objects module is an @dfn{inter-process | |
1674 | communication} (IPC) module developed for Qt. The idea is to extend existing | |
1675 | Qt's functionalities to enable an easy exchange of information between | |
1676 | processes or computers."))) | |
b84cc89a EF |
1677 | |
1678 | (define-public qtspeech | |
1679 | (package (inherit qtsvg) | |
1680 | (name "qtspeech") | |
7930cfc9 | 1681 | (version "5.11.2") |
b84cc89a EF |
1682 | (source (origin |
1683 | (method url-fetch) | |
1684 | (uri (string-append "https://download.qt.io/official_releases/qt/" | |
1685 | (version-major+minor version) "/" version | |
1f52eb7b | 1686 | "/submodules/" name "-everywhere-src-" |
b84cc89a EF |
1687 | version ".tar.xz")) |
1688 | (sha256 | |
1689 | (base32 | |
7930cfc9 | 1690 | "110xr2y174sayi9f6swzp1wx7mx4sw9rifcdx2bkbsnbfab6zg8a")))) |
b6476ecc EF |
1691 | (arguments |
1692 | (substitute-keyword-arguments (package-arguments qtsvg) | |
1693 | ((#:tests? _ #f) #f))) ; TODO: Enable the tests | |
b84cc89a EF |
1694 | (inputs |
1695 | `(("qtbase" ,qtbase))) | |
1696 | (native-inputs | |
1697 | `(("perl" ,perl) | |
1698 | ("qtdeclarative" ,qtdeclarative) | |
1699 | ("qtmultimedia" ,qtmultimedia) | |
96412f34 EF |
1700 | ("qtxmlpatterns" ,qtxmlpatterns))) |
1701 | (synopsis "Qt Speech module") | |
1702 | (description "The Qt Speech module enables a Qt application to support | |
1703 | accessibility features such as text-to-speech, which is useful for end-users | |
1704 | who are visually challenged or cannot access the application for whatever | |
1705 | reason. The most common use case where text-to-speech comes in handy is when | |
1706 | the end-user is driving and cannot attend the incoming messages on the phone. | |
1707 | In such a scenario, the messaging application can read out the incoming | |
1708 | message."))) | |
a69945a7 | 1709 | |
84ef83dd AE |
1710 | (define-public python-sip |
1711 | (package | |
1712 | (name "python-sip") | |
fac1447b | 1713 | (version "4.19.12") |
84ef83dd AE |
1714 | (source |
1715 | (origin | |
1716 | (method url-fetch) | |
1717 | (uri | |
1718 | (string-append "mirror://sourceforge/pyqt/sip/" | |
8fa7f8d9 | 1719 | "sip-" version "/sip-" version ".tar.gz")) |
84ef83dd AE |
1720 | (sha256 |
1721 | (base32 | |
fac1447b | 1722 | "08iqj9qyanc6a4bllbd87gv8pd1gkplw1jhfa1sz0gcq3g1pyq94")))) |
84ef83dd AE |
1723 | (build-system gnu-build-system) |
1724 | (native-inputs | |
1725 | `(("python" ,python-wrapper))) | |
1726 | (arguments | |
1727 | `(#:tests? #f ; no check target | |
e8bdd73a AE |
1728 | #:modules ((srfi srfi-1) |
1729 | ,@%gnu-build-system-modules) | |
84ef83dd | 1730 | #:phases |
39766868 EF |
1731 | (modify-phases %standard-phases |
1732 | (replace 'configure | |
1733 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1734 | (let* ((out (assoc-ref outputs "out")) | |
1735 | (bin (string-append out "/bin")) | |
1736 | (include (string-append out "/include")) | |
1737 | (python (assoc-ref inputs "python")) | |
1738 | (python-version | |
1739 | (last (string-split python #\-))) | |
1740 | (python-major+minor | |
1741 | (string-join | |
1742 | (take (string-split python-version #\.) 2) | |
1743 | ".")) | |
1744 | (lib (string-append out "/lib/python" | |
1745 | python-major+minor | |
1746 | "/site-packages"))) | |
e3232b26 | 1747 | (invoke "python" "configure.py" |
e3232b26 EF |
1748 | "--bindir" bin |
1749 | "--destdir" lib | |
1750 | "--incdir" include))))))) | |
39766868 | 1751 | (home-page "https://www.riverbankcomputing.com/software/sip/intro") |
84ef83dd AE |
1752 | (synopsis "Python binding creator for C and C++ libraries") |
1753 | (description | |
1754 | "SIP is a tool to create Python bindings for C and C++ libraries. It | |
1755 | was originally developed to create PyQt, the Python bindings for the Qt | |
1756 | toolkit, but can be used to create bindings for any C or C++ library. | |
1757 | ||
1758 | SIP comprises a code generator and a Python module. The code generator | |
1759 | processes a set of specification files and generates C or C++ code, which | |
1760 | is then compiled to create the bindings extension module. The SIP Python | |
1761 | module provides support functions to the automatically generated code.") | |
1762 | ;; There is a choice between a python like license, gpl2 and gpl3. | |
1763 | ;; For compatibility with pyqt, we need gpl3. | |
225941b0 | 1764 | (license license:gpl3))) |
84ef83dd AE |
1765 | |
1766 | (define-public python2-sip | |
1767 | (package (inherit python-sip) | |
1768 | (name "python2-sip") | |
1769 | (native-inputs | |
1770 | `(("python" ,python-2))))) | |
014e7dd8 AE |
1771 | |
1772 | (define-public python-pyqt | |
1773 | (package | |
1774 | (name "python-pyqt") | |
a01a3763 | 1775 | (version "5.11.2") |
014e7dd8 AE |
1776 | (source |
1777 | (origin | |
1778 | (method url-fetch) | |
1779 | (uri | |
1780 | (string-append "mirror://sourceforge/pyqt/PyQt5/" | |
2be06813 | 1781 | "PyQt-" version "/PyQt5_gpl-" |
014e7dd8 AE |
1782 | version ".tar.gz")) |
1783 | (sha256 | |
1784 | (base32 | |
a01a3763 | 1785 | "00wn9svgyp0fsrkc4ma15zcxg31pw4gsgaz6nwb3fhy3al8miakw")) |
2338755a EF |
1786 | (patches (search-patches "pyqt-configure.patch" |
1787 | "pyqt-public-sip.patch")))) | |
014e7dd8 AE |
1788 | (build-system gnu-build-system) |
1789 | (native-inputs | |
499991cf EB |
1790 | `(("qtbase" ,qtbase))) ; for qmake |
1791 | (propagated-inputs | |
1792 | `(("python-sip" ,python-sip))) | |
014e7dd8 | 1793 | (inputs |
e9adcd81 EF |
1794 | `(("python" ,python-wrapper) |
1795 | ("qtbase" ,qtbase) | |
1796 | ("qtconnectivity" ,qtconnectivity) | |
1797 | ("qtdeclarative" ,qtdeclarative) | |
1798 | ("qtlocation" ,qtlocation) | |
1799 | ("qtmultimedia" ,qtmultimedia) | |
1800 | ("qtsensors" ,qtsensors) | |
1801 | ("qtserialport" ,qtserialport) | |
1802 | ("qtsvg" ,qtsvg) | |
1803 | ("qttools" ,qttools) | |
1804 | ("qtwebchannel" ,qtwebchannel) | |
52404022 | 1805 | ("qtwebkit" ,qtwebkit) |
e9adcd81 EF |
1806 | ("qtwebsockets" ,qtwebsockets) |
1807 | ("qtx11extras" ,qtx11extras) | |
1808 | ("qtxmlpatterns" ,qtxmlpatterns))) | |
014e7dd8 | 1809 | (arguments |
e8bdd73a AE |
1810 | `(#:modules ((srfi srfi-1) |
1811 | ,@%gnu-build-system-modules) | |
1812 | #:phases | |
eef988c8 EF |
1813 | (modify-phases %standard-phases |
1814 | (replace 'configure | |
1815 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1816 | (let* ((out (assoc-ref outputs "out")) | |
1817 | (bin (string-append out "/bin")) | |
1818 | (sip (string-append out "/share/sip")) | |
1819 | (plugins (string-append out "/plugins")) | |
1820 | (designer (string-append plugins "/designer")) | |
1821 | (qml (string-append plugins "/PyQt5")) | |
1822 | (python (assoc-ref inputs "python")) | |
1823 | (python-version | |
1824 | (last (string-split python #\-))) | |
1825 | (python-major+minor | |
1826 | (string-join | |
1827 | (take (string-split python-version #\.) 2) | |
1828 | ".")) | |
1829 | (lib (string-append out "/lib/python" | |
1830 | python-major+minor | |
43e8824d HG |
1831 | "/site-packages")) |
1832 | (stubs (string-append lib "/PyQt5"))) | |
a01a3763 EF |
1833 | (invoke "python" "configure.py" |
1834 | "--confirm-license" | |
1835 | "--bindir" bin | |
1836 | "--destdir" lib | |
1837 | "--designer-plugindir" designer | |
1838 | "--qml-plugindir" qml | |
1839 | ; Where to install the PEP 484 Type Hints stub | |
1840 | ; files. Without this the stubs are tried to be | |
1841 | ; installed into the python package's | |
1842 | ; site-package directory, which is read-only. | |
1843 | "--stubsdir" stubs | |
1844 | "--sipdir" sip))))))) | |
eef988c8 | 1845 | (home-page "https://www.riverbankcomputing.com/software/pyqt/intro") |
014e7dd8 AE |
1846 | (synopsis "Python bindings for Qt") |
1847 | (description | |
1848 | "PyQt is a set of Python v2 and v3 bindings for the Qt application | |
1849 | framework. The bindings are implemented as a set of Python modules and | |
1850 | contain over 620 classes.") | |
225941b0 | 1851 | (license license:gpl3))) |
014e7dd8 | 1852 | |
0e2d6d26 RW |
1853 | ;; XXX: This is useful because qtwebkit does not build reliably at this time. |
1854 | ;; Ultimately, it would be nicer to have a more modular set of python-pyqt-* | |
1855 | ;; packages that could be used together. | |
1856 | (define-public python-pyqt-without-qtwebkit | |
1857 | (package (inherit python-pyqt) | |
1858 | (name "python-pyqt-without-qtwebkit") | |
1859 | (inputs | |
1860 | (alist-delete "qtwebkit" (package-inputs python-pyqt))))) | |
1861 | ||
014e7dd8 AE |
1862 | (define-public python2-pyqt |
1863 | (package (inherit python-pyqt) | |
1864 | (name "python2-pyqt") | |
1865 | (native-inputs | |
1866 | `(("python-sip" ,python2-sip) | |
2be06813 | 1867 | ("qtbase" ,qtbase))) |
014e7dd8 | 1868 | (inputs |
e9adcd81 | 1869 | `(("python" ,python-2) |
a01a3763 | 1870 | ("python2-enum34" ,python2-enum34) |
e9adcd81 | 1871 | ,@(alist-delete "python" (package-inputs python-pyqt)))))) |
3e291958 | 1872 | |
bba60697 | 1873 | (define-public python2-pyqt-4 |
3e291958 | 1874 | (package (inherit python-pyqt) |
bba60697 | 1875 | (name "python2-pyqt") |
41fa164a | 1876 | (version "4.12") |
3e291958 AE |
1877 | (source |
1878 | (origin | |
1879 | (method url-fetch) | |
1880 | (uri | |
1881 | (string-append "mirror://sourceforge/pyqt/PyQt4/" | |
41fa164a | 1882 | "PyQt-" version "/PyQt4_gpl_x11-" |
3e291958 AE |
1883 | version ".tar.gz")) |
1884 | (sha256 | |
1885 | (base32 | |
41fa164a | 1886 | "1nw8r88a5g2d550yvklawlvns8gd5slw53yy688kxnsa65aln79w")))) |
3e291958 | 1887 | (native-inputs |
bba60697 | 1888 | `(("python-sip" ,python2-sip) |
3e291958 | 1889 | ("qt" ,qt-4))) |
bba60697 | 1890 | (inputs `(("python" ,python-2))) |
3e291958 AE |
1891 | (arguments |
1892 | `(#:tests? #f ; no check target | |
e8bdd73a AE |
1893 | #:modules ((srfi srfi-1) |
1894 | ,@%gnu-build-system-modules) | |
3e291958 | 1895 | #:phases |
f9513086 EF |
1896 | (modify-phases %standard-phases |
1897 | (replace 'configure | |
1898 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1899 | (let* ((out (assoc-ref outputs "out")) | |
1900 | (bin (string-append out "/bin")) | |
1901 | (sip (string-append out "/share/sip")) | |
1902 | (python (assoc-ref inputs "python")) | |
1903 | (python-version | |
1904 | (last (string-split python #\-))) | |
1905 | (python-major+minor | |
1906 | (string-join | |
1907 | (take (string-split python-version #\.) 2) | |
1908 | ".")) | |
1909 | (lib (string-append out "/lib/python" | |
1910 | python-major+minor | |
1911 | "/site-packages"))) | |
39df4d19 RW |
1912 | (invoke "python" "configure.py" |
1913 | "--confirm-license" | |
1914 | "--bindir" bin | |
1915 | "--destdir" lib | |
1916 | "--sipdir" sip))))))) | |
225941b0 | 1917 | (license (list license:gpl2 license:gpl3)))) ; choice of either license |
3e291958 | 1918 | |
3befd0a9 RW |
1919 | (define-public qscintilla |
1920 | (package | |
1921 | (name "qscintilla") | |
8911d85b | 1922 | (version "2.10.7") |
3befd0a9 RW |
1923 | (source (origin |
1924 | (method url-fetch) | |
1925 | (uri (string-append "mirror://sourceforge/pyqt/QScintilla2/" | |
1926 | "QScintilla-" version "/QScintilla_gpl-" | |
1927 | version ".tar.gz")) | |
1928 | (sha256 | |
1929 | (base32 | |
8911d85b | 1930 | "06hs6civq13dvzlws0spjb7gwyk6kynpnfwg5plhahnxf7g5h137")))) |
3befd0a9 RW |
1931 | (build-system gnu-build-system) |
1932 | (arguments | |
1933 | `(#:phases | |
1934 | (modify-phases %standard-phases | |
1935 | (replace 'configure | |
1936 | (lambda* (#:key outputs #:allow-other-keys) | |
1937 | (let ((out (assoc-ref outputs "out"))) | |
1938 | (chdir "Qt4Qt5") | |
1939 | (substitute* "qscintilla.pro" | |
1940 | (("\\$\\$\\[QT_INSTALL_LIBS\\]") | |
1941 | (string-append out "/lib")) | |
1942 | (("\\$\\$\\[QT_INSTALL_HEADERS\\]") | |
1943 | (string-append out "/include")) | |
1944 | (("\\$\\$\\[QT_INSTALL_TRANSLATIONS\\]") | |
1945 | (string-append out "/translations")) | |
5430732b HG |
1946 | (("\\$\\$\\[QT_INSTALL_DATA\\]") |
1947 | (string-append out "/lib/qt$${QT_MAJOR_VERSION}")) | |
1948 | (("\\$\\$\\[QT_HOST_DATA\\]") | |
1949 | (string-append out "/lib/qt$${QT_MAJOR_VERSION}"))) | |
0af6ffdd | 1950 | (invoke "qmake"))))))) |
3befd0a9 | 1951 | (native-inputs `(("qtbase" ,qtbase))) |
d338321d | 1952 | (home-page "https://www.riverbankcomputing.co.uk/software/qscintilla/intro") |
3befd0a9 RW |
1953 | (synopsis "Qt port of the Scintilla C++ editor control") |
1954 | (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ | |
1955 | editor control. QScintilla includes features especially useful when editing | |
1956 | and debugging source code. These include support for syntax styling, error | |
1957 | indicators, code completion and call tips.") | |
1958 | (license license:gpl3+))) | |
1959 | ||
06d04dbc RW |
1960 | (define-public python-qscintilla |
1961 | (package (inherit qscintilla) | |
1962 | (name "python-qscintilla") | |
1963 | (arguments | |
1964 | `(#:configure-flags | |
1965 | (list "--pyqt=PyQt5" | |
1966 | (string-append "--pyqt-sipdir=" | |
1967 | (assoc-ref %build-inputs "python-pyqt") | |
1968 | "/share/sip") | |
1969 | (string-append "--qsci-incdir=" | |
1970 | (assoc-ref %build-inputs "qscintilla") | |
1971 | "/include") | |
1972 | (string-append "--qsci-libdir=" | |
1973 | (assoc-ref %build-inputs "qscintilla") | |
1974 | "/lib")) | |
1975 | #:phases | |
1976 | (modify-phases %standard-phases | |
1977 | (replace 'configure | |
1978 | (lambda* (#:key outputs configure-flags #:allow-other-keys) | |
1979 | (chdir "Python") | |
76c7fc43 MW |
1980 | (apply invoke "python3" "configure.py" |
1981 | configure-flags) | |
1982 | ;; Install to the right directory | |
1983 | (substitute* '("Makefile" | |
1984 | "Qsci/Makefile") | |
1985 | (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") | |
1986 | (assoc-ref outputs "out"))) | |
bca72b39 EF |
1987 | ;; And fix the installed.txt file |
1988 | (substitute* "installed.txt" | |
1989 | (("/gnu/store/[^/]+") | |
1990 | (assoc-ref outputs "out"))) | |
76c7fc43 | 1991 | #t))))) |
06d04dbc RW |
1992 | (inputs |
1993 | `(("qscintilla" ,qscintilla) | |
1994 | ("python" ,python) | |
1995 | ("python-pyqt" ,python-pyqt))) | |
1996 | (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ | |
1997 | editor control. QScintilla includes features especially useful when editing | |
1998 | and debugging source code. These include support for syntax styling, error | |
1999 | indicators, code completion and call tips. | |
2000 | ||
2001 | This package provides the Python bindings."))) | |
2002 | ||
2456153a RW |
2003 | ;; PyQt only looks for modules in its own directory. It ignores environment |
2004 | ;; variables such as PYTHONPATH, so we need to build a union package to make | |
2005 | ;; it work. | |
2006 | (define-public python-pyqt+qscintilla | |
2007 | (package (inherit python-pyqt) | |
2008 | (name "python-pyqt+qscintilla") | |
2009 | (source #f) | |
2010 | (build-system trivial-build-system) | |
2011 | (arguments | |
2012 | '(#:modules ((guix build union)) | |
2013 | #:builder (begin | |
2014 | (use-modules (ice-9 match) | |
2015 | (guix build union)) | |
2016 | (match %build-inputs | |
2017 | (((names . directories) ...) | |
2018 | (union-build (assoc-ref %outputs "out") | |
e3cfef22 MW |
2019 | directories) |
2020 | #t))))) | |
2456153a RW |
2021 | (inputs |
2022 | `(("python-pyqt" ,python-pyqt) | |
2023 | ("python-qscintilla" ,python-qscintilla))) | |
2024 | (synopsis "Union of PyQt and the Qscintilla extension") | |
2025 | (description | |
2026 | "This package contains the union of PyQt and the Qscintilla extension."))) | |
2027 | ||
9e81af9e EF |
2028 | (define-public qtkeychain |
2029 | (package | |
2030 | (name "qtkeychain") | |
2879e605 | 2031 | (version "0.9.1") |
9e81af9e EF |
2032 | (source |
2033 | (origin | |
2879e605 EF |
2034 | (method git-fetch) |
2035 | (uri (git-reference | |
2036 | (url "https://github.com/frankosterfeld/qtkeychain/") | |
2037 | (commit (string-append "v" version)))) | |
2038 | (file-name (git-file-name name version)) | |
9e81af9e | 2039 | (sha256 |
2879e605 EF |
2040 | (base32 |
2041 | "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc")))) | |
9e81af9e | 2042 | (build-system cmake-build-system) |
18174d8a | 2043 | (native-inputs |
f8127d26 HG |
2044 | `(("pkg-config" ,pkg-config) |
2045 | ("qttools" ,qttools))) | |
9e81af9e | 2046 | (inputs |
18174d8a | 2047 | `(("qtbase" ,qtbase))) |
9e81af9e EF |
2048 | (arguments |
2049 | `(#:tests? #f ; No tests included | |
2050 | #:phases | |
2051 | (modify-phases %standard-phases | |
2879e605 | 2052 | (add-before 'configure 'set-qt-trans-dir |
9e81af9e EF |
2053 | (lambda _ |
2054 | (substitute* "CMakeLists.txt" | |
2055 | (("\\$\\{qt_translations_dir\\}") | |
2879e605 | 2056 | "${CMAKE_INSTALL_PREFIX}/share/qt5/translations")) |
4ad70ad8 | 2057 | #t))))) |
9e81af9e EF |
2058 | (home-page "https://github.com/frankosterfeld/qtkeychain") |
2059 | (synopsis "Qt API to store passwords") | |
2060 | (description | |
2061 | "QtKeychain is a Qt library to store passwords and other secret data | |
2062 | securely. It will not store any data unencrypted unless explicitly requested.") | |
225941b0 | 2063 | (license license:bsd-3))) |
fc381a33 TD |
2064 | |
2065 | (define-public qwt | |
2066 | (package | |
2067 | (name "qwt") | |
2068 | (version "6.1.3") | |
2069 | (source | |
2070 | (origin | |
2071 | (method url-fetch) | |
2072 | (uri | |
2073 | (string-append "mirror://sourceforge/qwt/qwt/" | |
2074 | version "/qwt-" version ".tar.bz2")) | |
2075 | (sha256 | |
2076 | (base32 "0cwp63s03dw351xavb3pzbjlqvx7kj88wv7v4a2b18m9f97d7v7k")))) | |
2077 | (build-system gnu-build-system) | |
2078 | (inputs | |
2079 | `(("qtbase" ,qtbase) | |
2080 | ("qtsvg" ,qtsvg) | |
2081 | ("qttools" ,qttools))) | |
2082 | (arguments | |
2083 | `(#:phases | |
2084 | (modify-phases %standard-phases | |
2085 | (replace 'configure | |
2086 | (lambda* (#:key outputs #:allow-other-keys) | |
163651cb SB |
2087 | (let* ((out (assoc-ref outputs "out")) |
2088 | (docdir (string-append out "/share/doc/qwt")) | |
2089 | (incdir (string-append out "/include/qwt")) | |
2090 | (pluginsdir (string-append out "/lib/qt5/plugins/designer")) | |
2091 | (featuresdir (string-append out "/lib/qt5/mkspecs/features"))) | |
fc381a33 | 2092 | (substitute* '("qwtconfig.pri") |
163651cb SB |
2093 | (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x) |
2094 | (format #f "~a = ~a\n" x out)) | |
2095 | (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x) | |
2096 | (format #f "~a = ~a\n" x docdir)) | |
2097 | (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x) | |
2098 | (format #f "~a = ~a\n" x incdir)) | |
2099 | (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x) | |
2100 | (format #f "~a = ~a\n" x pluginsdir)) | |
2101 | (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x) | |
2102 | (format #f "~a = ~a\n" x featuresdir))) | |
2103 | (substitute* '("doc/doc.pro") | |
2104 | ;; We'll install them in the 'install-man-pages' phase. | |
2105 | (("^unix:doc\\.files.*") "")) | |
41173df9 | 2106 | (invoke "qmake")))) |
163651cb | 2107 | (add-after 'install 'install-man-pages |
fc381a33 TD |
2108 | (lambda* (#:key outputs #:allow-other-keys) |
2109 | (let* ((out (assoc-ref outputs "out")) | |
2110 | (man (string-append out "/share/man"))) | |
2111 | ;; Remove some incomplete manual pages. | |
2112 | (for-each delete-file (find-files "doc/man/man3" "^_tmp.*")) | |
2113 | (mkdir-p man) | |
2114 | (copy-recursively "doc/man" man) | |
2115 | #t)))))) | |
2116 | (home-page "http://qwt.sourceforge.net") | |
2117 | (synopsis "Qt widgets for plots, scales, dials and other technical software | |
2118 | GUI components") | |
2119 | (description | |
2120 | "The Qwt library contains widgets and components which are primarily useful | |
2121 | for technical and scientific purposes. It includes a 2-D plotting widget, | |
2122 | different kinds of sliders, and much more.") | |
2123 | (license | |
2124 | (list | |
2125 | ;; The Qwt license is LGPL2.1 with some exceptions. | |
2126 | (license:non-copyleft "http://qwt.sourceforge.net/qwtlicense.html") | |
2127 | ;; textengines/mathml/qwt_mml_document.{cpp,h} is dual LGPL2.1/GPL3 (either). | |
2128 | license:lgpl2.1 license:gpl3)))) | |
47e1d280 TD |
2129 | |
2130 | (define-public qtwebkit | |
2131 | (package | |
2132 | (name "qtwebkit") | |
601cb1be | 2133 | (version "5.212.0-alpha2") |
47e1d280 TD |
2134 | (source |
2135 | (origin | |
2136 | (method url-fetch) | |
601cb1be AE |
2137 | (uri (string-append "https://github.com/annulen/webkit/releases/download/" |
2138 | name "-" version "/" name "-" version ".tar.xz")) | |
47e1d280 TD |
2139 | (sha256 |
2140 | (base32 | |
601cb1be AE |
2141 | "12lg7w00d8wsj672s1y5z5gm0xdcgs16nas0b5bgq4byavg03ygq")) |
2142 | (patches (search-patches "qtwebkit-pbutils-include.patch")))) | |
2143 | (build-system cmake-build-system) | |
47e1d280 TD |
2144 | (native-inputs |
2145 | `(("perl" ,perl) | |
2146 | ("python" ,python-2.7) | |
2147 | ("ruby" ,ruby) | |
2148 | ("bison" ,bison) | |
2149 | ("flex" ,flex) | |
2150 | ("gperf" ,gperf) | |
2151 | ("pkg-config" ,pkg-config))) | |
2152 | (inputs | |
2153 | `(("icu" ,icu4c) | |
601cb1be AE |
2154 | ("glib" ,glib) |
2155 | ("gst-plugins-base" ,gst-plugins-base) | |
47e1d280 TD |
2156 | ("libjpeg" ,libjpeg) |
2157 | ("libpng" ,libpng) | |
2158 | ("libwebp" ,libwebp) | |
2159 | ("sqlite" ,sqlite) | |
2160 | ("fontconfig" ,fontconfig) | |
c695fb76 | 2161 | ("libxrender" ,libxrender) |
47e1d280 TD |
2162 | ("qtbase" ,qtbase) |
2163 | ("qtdeclarative" ,qtdeclarative) | |
601cb1be | 2164 | ("qtlocation" ,qtlocation) |
47e1d280 | 2165 | ("qtmultimedia" ,qtmultimedia) |
601cb1be AE |
2166 | ("qtsensors" ,qtsensors) |
2167 | ("qtwebchannel" ,qtwebchannel) | |
47e1d280 TD |
2168 | ("libxml2" ,libxml2) |
2169 | ("libxslt" ,libxslt) | |
2170 | ("libx11" ,libx11) | |
2171 | ("libxcomposite" ,libxcomposite))) | |
2172 | (arguments | |
601cb1be AE |
2173 | `(#:tests? #f ; no apparent tests; it might be necessary to set |
2174 | ; ENABLE_API_TESTS, see CMakeLists.txt | |
2175 | #:configure-flags (list ;"-DENABLE_API_TESTS=TRUE" | |
2176 | "-DPORT=Qt" | |
2177 | "-DUSE_LIBHYPHEN=OFF" | |
0995a569 EB |
2178 | "-DUSE_SYSTEM_MALLOC=ON" |
2179 | ;; XXX: relative dir installs to build dir? | |
2180 | (string-append "-DECM_MKSPECS_INSTALL_DIR=" | |
ebdb15bc EB |
2181 | %output "/lib/qt5/mkspecs/modules") |
2182 | ;; Sacrifice a little speed in order to link | |
2183 | ;; libraries and test executables in a | |
2184 | ;; reasonable amount of memory. | |
2185 | "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-keep-memory" | |
2186 | "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-keep-memory"))) | |
47e1d280 TD |
2187 | (home-page "https://www.webkit.org") |
2188 | (synopsis "Web browser engine and classes to render and interact with web | |
2189 | content") | |
2190 | (description "QtWebKit provides a Web browser engine that makes it easy to | |
2191 | embed content from the World Wide Web into your Qt application. At the same | |
2192 | time Web content can be enhanced with native controls.") | |
47e1d280 | 2193 | (license license:lgpl2.1+))) |
f048f12b | 2194 | |
2195 | (define-public dotherside | |
2196 | (package | |
2197 | (name "dotherside") | |
8895a968 | 2198 | (version "0.6.3") |
f048f12b | 2199 | (source |
2200 | (origin | |
2201 | (method url-fetch) | |
2202 | (uri (string-append "https://github.com/filcuc/DOtherSide/" | |
2203 | "archive/v" version ".tar.gz")) | |
2204 | (file-name (string-append name "-" version ".tar.gz")) | |
2205 | (sha256 | |
2206 | (base32 | |
8895a968 | 2207 | "0azq7qlsrfdwbd6qsi7d3c1knn42qw0r47g43xf7clwbinapswpz")))) |
f048f12b | 2208 | (build-system cmake-build-system) |
2209 | (native-inputs | |
2210 | `(("qttools" ,qttools))) | |
2211 | (inputs | |
2212 | `(("qtbase" ,qtbase) | |
2213 | ("qtdeclarative" ,qtdeclarative))) | |
96bdf904 | 2214 | (home-page "https://filcuc.github.io/DOtherSide/index.html") |
f048f12b | 2215 | (synopsis "C language library for creating bindings for the Qt QML language") |
2216 | (description | |
2217 | "DOtherSide is a C language library for creating bindings for the | |
2218 | QT QML language. The following features are implementable from | |
2219 | a binding language: | |
2220 | @itemize | |
2221 | @item Creating custom QObject | |
2222 | @item Creating custom QAbstractListModels | |
2223 | @item Creating custom properties, signals and slots | |
2224 | @item Creating from QML QObject defined in the binded language | |
2225 | @item Creating from Singleton QML QObject defined in the binded language | |
2226 | @end itemize\n") | |
2227 | (license license:lgpl3))) ;version 3 only (+ exception) |