diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-10 23:14:20 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-18 10:45:35 +0800 |
commit | 4616ecebdb323c950c71fe6f2dbb897f2dacd287 (patch) | |
tree | 924fcd356e45dbafea7732a68f7619cec1924047 /gnu/packages/qt.scm | |
parent | af5166f3149a66636679c8c00fcd91b884aa0c6f (diff) |
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
Diffstat (limited to 'gnu/packages/qt.scm')
-rw-r--r-- | gnu/packages/qt.scm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index fa20961780..677e91ea09 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -2619,8 +2619,18 @@ also contains functionality to support data models and executable content.") (add-after 'install 'delete-installed-tests (lambda _ (delete-file-recursively - (string-append #$output "/tests"))))))) - (inputs (list perl qtbase)) + (string-append #$output "/tests")))) + (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)) (synopsis "QML and C++ positioning information API") (description "The Qt Positioning API provides positioning information via |