summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-08-13 10:28:16 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-08-22 12:32:21 -0400
commitb4cd976d112031434b9640ac467c2077572e5fd3 (patch)
treea22603c7198690153d2d672c922906f59d71c948 /gnu
parente3ad9b976f77ea8f4056eac659ab387bfe3b7870 (diff)
gnu: Add qtimageformats.
* gnu/packages/qt.scm (qtimageformats): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/qt.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 0ad36f4f0d..6112acd9b5 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1148,6 +1148,40 @@ HostData=lib/qt5
(description "The QtImageFormats module contains plugins for adding
support for MNG, TGA, TIFF and WBMP image formats.")))
+(define-public qtimageformats
+ (package
+ (name "qtimageformats")
+ (version "6.5.2")
+ (source (origin
+ (inherit (package-source qtimageformats-5))
+ (method url-fetch)
+ (uri (qt-url name version))
+ (sha256
+ (base32
+ "0hv7mkn72126rkhy5gmjmbvzy7v17mkk3q2pkmzy99f64j4w1q5a"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-display
+ (lambda _
+ ;; Make Qt render "offscreen", required for tests.
+ (setenv "QT_QPA_PLATFORM" "offscreen"))))))
+ (inputs
+ (list jasper
+ libmng
+ libtiff
+ libwebp
+ mesa
+ qtbase
+ zlib))
+ (synopsis "Additional Image Format plugins for Qt")
+ (description "The QtImageFormats module contains plugins for adding
+support for MNG, TGA, TIFF and WBMP image formats.")
+ (home-page (package-home-page qtbase))
+ (license (package-license qtbase))))
+
(define-public qtx11extras
(package (inherit qtsvg-5)
(name "qtx11extras")