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 @@ (define-public qtpositioning (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