guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 23b4706dd1bca5997f3b48972cf8a1b98fa5ecc0
Author: Sughosha <[email protected]>
AuthorDate: Thu Mar 5 12:17:14 2026 +0530
gnu: Add qtvirtualkeyboard.
* gnu/packages/qt.scm (qtvirtualkeyboard): New variable.
Change-Id: I25234e5860f7776b707aa67b622f0f145e540c95
---
gnu/packages/qt.scm | 43 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 2b3a211480..03b57df5de 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -34,7 +34,7 @@
;;; Copyright © 2024 Foundation Devices, Inc. <[email protected]>
;;; Copyright © 2024 Josep Bigorra <[email protected]>
;;; Copyright © 2025 John Kehayias <[email protected]>
-;;; Copyright © 2024 Sughosha <[email protected]>
+;;; Copyright © 2024, 2026 Sughosha <[email protected]>
;;; Copyright © 2025 Brice Waegeneire <[email protected]>
;;;
;;; This file is part of GNU Guix.
@@ -3506,6 +3506,47 @@ message.")
that consists of a C++ backend supporting custom input methods as well as a UI
frontend implemented in QML.")))
+(define-public qtvirtualkeyboard
+ (package
+ (name "qtvirtualkeyboard")
+ (version "6.9.2")
+ (source (origin
+ (method url-fetch)
+ (uri (qt-url name version))
+ (sha256
+ (base32
+ "1qqizh7kyqbqqnrm1mmlf2709rm1rnflbqdl1bi75yms07d00hbv"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags #~(list "-DQT_BUILD_TESTS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'check-setup
+ (lambda _
+ (setenv "QML_IMPORT_PATH"
+ (string-append #$output "/lib/qt6/qml:"
+ (getenv "QML_IMPORT_PATH")))
+ (setenv "HOME" (getcwd))
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ (setenv "DISPLAY" ":1")
+ (system "Xvfb +extension GLX :1 &")))
+ (delete 'check) ;move after the install phase
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-after 'install 'delete-installed-tests
+ (lambda _
+ (delete-file-recursively (string-append #$output "/tests")))))))
+ (native-inputs (list perl xorg-server-for-tests))
+ (inputs (list qtbase))
+ (propagated-inputs (list qtdeclarative qtmultimedia qtsvg))
+ (synopsis "QtQuick virtual keyboard")
+ (description "The Qt Speech module provides a virtual keyboard framework
+that consists of a C++ backend supporting custom input methods as well as a UI
+frontend implemented in QML.")
+ (home-page (package-home-page qtbase))
+ (license (package-license qtbase))))
+
(define-public qtspell
(package
(name "qtspell")