Subject: [PATCH v2 19/65] gnu: kirigami: Fix tests.

From: Greg Hogan <[email-masked]>
Date: Tue, 22 Oct 2024 18:09:09 +0000

* gnu/packages/kde-frameworks.scm (kirigami)[arguments]
<#:phases>: Add 'set-offscreen-display.

Change-Id: I054c0a2301e1e342f12ef4aa9e9b542c1339f712
---
 gnu/packages/kde-frameworks.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 13d4e24726..d5bd5f0b5c 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1242,6 +1242,13 @@ (define-public kirigami
                (base32
                 "173m6h9wr8pl5l70s6wmasm8dimkq737qgn6mlzdm18w3qb3p9s3"))))
     (build-system cmake-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'set-offscreen-display
+            (lambda _
+              (setenv "QT_QPA_PLATFORM" "offscreen"))))))
     (native-inputs
      (list extra-cmake-modules qttools))
     (inputs
-- 
2.46.1