gnu: qtpositioning: Enable qtpositioningquick.

* gnu/packages/qt.scm (qtpositioning): Enable qtpositioningquick.
[inputs]: Add qtdeclarative, qtserialport, and libxkbcommon.
[arguments]<#:phases>: Move check after install, add check-setup phase.

Change-Id: Id9d29280e6d46a764cda12922347baa443481232
This commit is contained in:
Zheng Junjie 2024-07-10 23:14:20 +08:00
parent af5166f314
commit 4616ecebdb
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -2619,8 +2619,18 @@ (define-public qtpositioning
(add-after 'install 'delete-installed-tests (add-after 'install 'delete-installed-tests
(lambda _ (lambda _
(delete-file-recursively (delete-file-recursively
(string-append #$output "/tests"))))))) (string-append #$output "/tests"))))
(inputs (list perl qtbase)) (delete 'check) ;move after the install phase
(add-after 'install 'check
(assoc-ref %standard-phases 'check))
(add-before 'check 'check-setup
(lambda _
(setenv "QML_IMPORT_PATH"
(string-append #$output "/lib/qt6/qml:"
(getenv "QML_IMPORT_PATH")))
;; Make Qt render "offscreen", required for tests.
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(inputs (list perl qtbase qtdeclarative qtserialport libxkbcommon))
(home-page (package-home-page qtbase)) (home-page (package-home-page qtbase))
(synopsis "QML and C++ positioning information API") (synopsis "QML and C++ positioning information API")
(description "The Qt Positioning API provides positioning information via (description "The Qt Positioning API provides positioning information via