gnu: qtdeclarative: Update to 6.9.2.

* gnu/packages/qt.scm (qtdeclarative): Update to 6.9.2.
[#:phases] {check}: Set CMAKE_PREFIX_PATH and CPLUS_INCLUDE_PATH environment
variables.

Change-Id: I60fa21d91e4bc35b85fb73c7f06d31cbef5171ed
Co-authored-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
Zheng Junjie 2025-07-21 23:26:15 +08:00 committed by Maxim Cournoyer
parent 027e83a22d
commit feddefe40a
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1660,14 +1660,14 @@ with JavaScript and C++.")))
(define-public qtdeclarative
(package
(name "qtdeclarative")
(version "6.8.2")
(version "6.9.2")
;; TODO: Package 'masm' and unbundle from sources.
(source (origin
(method url-fetch)
(uri (qt-url name version))
(sha256
(base32
"0mkd6hqvg21dg63022iq1b6sskp2s5wfchsifc4mkdcbvim8fk8l"))
"0r16qima008y2999r1djvwry01l295nmwwhqg081d2fr1cn2szs7"))
(patches (search-patches "qtdeclarative-disable-qmlcache.patch"))))
(outputs '("out" "debug"))
(build-system cmake-build-system)
@ -1712,8 +1712,18 @@ with JavaScript and C++.")))
(lambda _
(invoke "cmake" "--install" ".")))
(add-after 'install 'check
(lambda* (#:key tests? parallel-tests? #:allow-other-keys)
(lambda* (#:key tests? parallel-tests?
native-inputs inputs #:allow-other-keys)
(when tests?
(setenv "TZDIR" (search-input-directory
(or native-inputs inputs) "share/zoneinfo"))
(setenv "TZ" "Etc/UTC")
(setenv "CMAKE_PREFIX_PATH"
(string-append #$output
":" (getenv "CMAKE_PREFIX_PATH")))
(setenv "CPLUS_INCLUDE_PATH"
(string-append #$output "/include/qt6/:"
(getenv "CPLUS_INCLUDE_PATH")))
;; The tests expect to find the modules provided by this
;; package; extend the environment variables needed to do so.
(setenv "QML_IMPORT_PATH"
@ -1801,7 +1811,8 @@ with JavaScript and C++.")))
pkg-config
python
qtshadertools
vulkan-headers))
vulkan-headers
tzdata-for-tests))
(inputs
(list at-spi2-core
libxkbcommon