treewide: replace xorgserver with xvfb in places where only xvfb is used

This commit is contained in:
K900 2024-06-23 13:33:47 +03:00
parent 43ebb05c57
commit 42c4ffb919
9 changed files with 14 additions and 16 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, cmake, pkg-config, python3, libX11, libXext, libXinerama, libXrandr, libXft, libXrender, libXdmcp, libXfixes, freetype, asciidoc
, xdotool, xorgserver, xsetroot, xterm, runtimeShell
, xdotool, xorg, xsetroot, xterm, runtimeShell
, fetchpatch
, nixosTests }:
@ -78,7 +78,7 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [
(python3.withPackages (ps: with ps; [ ewmh pytest xlib ]))
xdotool
xorgserver
xorg.xvfb
xsetroot
xterm
python3.pkgs.pytestCheckHook

View File

@ -1,7 +1,7 @@
{ fetchurl, lib, stdenv, pkg-config, makeWrapper, meson, ninja, installShellFiles, libxcb, xcbutilkeysyms
, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification, libX11, pcre2, libev
, yajl, xcb-util-cursor, perl, pango, perlPackages, libxkbcommon
, xorgserver, xvfb-run
, xvfb-run
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs
}:
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
libstartup_notification libX11 pcre2 libev yajl xcb-util-cursor perl pango
perlPackages.AnyEventI3 perlPackages.X11XCB perlPackages.IPCRun
perlPackages.ExtUtilsPkgConfig perlPackages.InlineC
xorgserver xvfb-run
xvfb-run
];
configureFlags = [ "--disable-builddir" ];

View File

@ -75,7 +75,7 @@ ps.buildPythonApplication rec {
ps.toml
] ++ lib.optionals stdenv.isLinux [
ps.pytest-xvfb
xorg.xorgserver
xorg.xvfb
];
preCheck = ''

View File

@ -13,7 +13,7 @@
, libX11
# To enable the "interactive-wayland" subcommand of xkbcli. This is the
# wayland equivalent of `xev` on X11.
, xorgserver # for Xvfb in tests
, xorg
, withWaylandTools ? stdenv.isLinux
, wayland
, wayland-protocols
@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: {
outputs = [ "out" "dev" "doc" ];
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config bison doxygen xorgserver ]
nativeBuildInputs = [ meson ninja pkg-config bison doxygen xorg.xvfb ]
++ lib.optional withWaylandTools wayland-scanner;
buildInputs = [ xkeyboard_config libxcb libxml2 ]
++ lib.optionals withWaylandTools [ wayland wayland-protocols ];

View File

@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
xorgserver,
xorg,
pytest,
pytest-xvfb,
i3,
@ -31,7 +31,7 @@ buildPythonPackage rec {
pytest
xdpyinfo
pytest-xvfb
xorgserver
xorg.xvfb
i3
];

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
xorg.xeyes
xorg.xorgserver
xorg.xvfb
];
preCheck = ''

View File

@ -39,7 +39,7 @@ buildPythonPackage rec {
nose
util-linux
xorg.xauth
xorg.xorgserver
xorg.xvfb
];
disabledTestPaths = [

View File

@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
xorgserver,
xorg,
mock,
}:
@ -15,7 +15,7 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "097wxhvp01ikqpg1z3v8rqhss6f1vwr399zpz9a05d2135bsxx5w";
};
propagatedBuildInputs = [ xorgserver ];
propagatedBuildInputs = [ xorg.xvfb ];
# See: https://github.com/cgoldberg/xvfbwrapper/issues/30
doCheck = false;

View File

@ -17285,9 +17285,7 @@ self: super: with self; {
xtensor-python = callPackage ../development/python-modules/xtensor-python { };
xvfbwrapper = callPackage ../development/python-modules/xvfbwrapper {
inherit (pkgs.xorg) xorgserver;
};
xvfbwrapper = callPackage ../development/python-modules/xvfbwrapper {};
xxhash = callPackage ../development/python-modules/xxhash { };