~ruther/guix-local

5dfb1d026a1fea2124272e70663a761d3e6efd37 — John Kehayias 6 months ago 735f2c6
gnu: Add xvfb-run-for-tests.

* gnu/packages/xorg.scm (xorg-server-for-tests): Update comment.
(xvfb-run-for-tests): New variable.
* gnu/packages/qt.scm (qtbase)[native-inputs]: Use it instead of xvfb-run.

Change-Id: I464f13e15f7952aed975a34396ab644e7f2789ab
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
2 files changed, 14 insertions(+), 2 deletions(-)

M gnu/packages/qt.scm
M gnu/packages/xorg.scm
M gnu/packages/qt.scm => gnu/packages/qt.scm +1 -1
@@ 1191,7 1191,7 @@ tst_qt_cmake_create.cpp"
       (prepend ninja                   ;CMake Generator, also used for tests
                tzdata-for-tests
                wayland-protocols
                xvfb-run)))
                xvfb-run-for-tests)))
    (propagated-inputs
     (modify-inputs (package-propagated-inputs qtbase-5)
       ;; Required by Qt6GuiDependencies.cmake.

M gnu/packages/xorg.scm => gnu/packages/xorg.scm +13 -1
@@ 5367,7 5367,8 @@ communicates with the user via graphical controls such as buttons and
draggable titlebars and borders.")
    (license license:x11)))

;; This package is intended to be used when building GTK+.
;; This package is intended to be used when building GTK+ qtbase (via
;; xvfb-run-for-tests).
;; Note: It's currently marked as "hidden" to avoid having two non-eq?
;; packages with the same name and version.
(define-public xorg-server-for-tests


@@ 7141,6 7142,17 @@ the server and cleaning up before returning the exit status of the command.")
    (license (list license:x11          ; the script
                   license:gpl2+))))    ; the man page

;; This package is intended to be used when building qtbase.
;; Note: It's currently marked as "hidden" to avoid having two non-eq?
;; packages with the same name and version.
(define-public xvfb-run-for-tests
  (hidden-package
   (package
     (inherit xvfb-run)
     (inputs
      (modify-inputs (package-inputs xvfb-run)
        (replace "xorg-server" xorg-server-for-tests))))))

(define-public xwayland-run
  (package
    (name "xwayland-run")