[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: gnu: qtpositioning: Enable qtpositioningquick.
From: |
guix-commits |
Subject: |
02/05: gnu: qtpositioning: Enable qtpositioningquick. |
Date: |
Wed, 10 Jul 2024 11:50:35 -0400 (EDT) |
z572 pushed a commit to branch kde-team
in repository guix.
commit e379cdeb70ef3736d239a1924175bc8cc3183e70
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Wed Jul 10 23:14:20 2024 +0800
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
---
gnu/packages/qt.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 6bf5297bc8..b0db7c0a6b 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -2631,8 +2631,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