summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2026-03-05 12:17:14 +0530
committerSughosha <sughosha@disroot.org>2026-03-05 15:48:22 +0530
commit23b4706dd1bca5997f3b48972cf8a1b98fa5ecc0 (patch)
tree9960821cc694601395562bc788df002b3f5ca044 /gnu
parent0273d9ba8bc74057036b7da19fd2c38312cd3315 (diff)
gnu: Add qtvirtualkeyboard.
* gnu/packages/qt.scm (qtvirtualkeyboard): New variable. Change-Id: I25234e5860f7776b707aa67b622f0f145e540c95
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/qt.scm43
1 files changed, 42 insertions, 1 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 2b3a2114803..03b57df5dee 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -34,7 +34,7 @@
;;; Copyright © 2024 Foundation Devices, Inc. <hello@foundation.xyz>
;;; Copyright © 2024 Josep Bigorra <jjbigorra@gmail.com>
;;; Copyright © 2025 John Kehayias <john.kehayias@protonmail.com>
-;;; Copyright © 2024 Sughosha <sughosha@disroot.org>
+;;; Copyright © 2024, 2026 Sughosha <sughosha@disroot.org>
;;; Copyright © 2025 Brice Waegeneire <brice@waegenei.re>
;;;
;;; 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")