mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
announcement: https://lists.x.org/archives/xorg-announce/2026-July/003718.html advisory: https://lists.x.org/archives/xorg-announce/2026-July/003716.html
125 lines
2.5 KiB
Nix
125 lines
2.5 KiB
Nix
# xvfb is used by a bunch of things to run tests
|
|
# so try to reduce its reverse closure
|
|
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
xorg-server,
|
|
dri-pkgconfig-stub,
|
|
libdrm,
|
|
libGL,
|
|
libx11,
|
|
libxau,
|
|
libxcb,
|
|
libxcvt,
|
|
libxdmcp,
|
|
libxfixes,
|
|
libxfont_2,
|
|
libxkbfile,
|
|
libxshmfence,
|
|
mesa-gl-headers,
|
|
mesa,
|
|
openssl,
|
|
pixman,
|
|
libxcb-util,
|
|
libxcb-image,
|
|
libxcb-keysyms,
|
|
libxcb-render-util,
|
|
libxcb-wm,
|
|
xkbcomp,
|
|
xkeyboard-config,
|
|
xorgproto,
|
|
xtrans,
|
|
font-util,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xvfb";
|
|
|
|
inherit (xorg-server) src version;
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
font-util
|
|
libGL
|
|
libx11
|
|
libxau
|
|
libxcb
|
|
libxcvt
|
|
libxdmcp
|
|
libxfixes
|
|
libxfont_2
|
|
libxkbfile
|
|
libxshmfence
|
|
mesa-gl-headers
|
|
openssl
|
|
pixman
|
|
libxcb-util
|
|
libxcb-image
|
|
libxcb-keysyms
|
|
libxcb-render-util
|
|
libxcb-wm
|
|
xorgproto
|
|
xtrans
|
|
]
|
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
dri-pkgconfig-stub
|
|
libdrm
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
mesa
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dxvfb=true"
|
|
"-Dxephyr=false"
|
|
"-Dxorg=false"
|
|
"-Dxnest=false"
|
|
"-Dsecure-rpc=false"
|
|
"-Dudev=false"
|
|
"-Dudev_kms=false"
|
|
|
|
"-Dlog_dir=/var/log"
|
|
"-Ddefault_font_path="
|
|
|
|
"-Dxkb_bin_dir=${xkbcomp}/bin"
|
|
"-Dxkb_dir=${xkeyboard-config}/share/X11/xkb"
|
|
"-Dxkb_output_dir=$out/share/X11/xkb/compiled"
|
|
]
|
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
"-Dxcsecurity=true"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"-Ddtrace=false"
|
|
"-Dxquartz=false"
|
|
];
|
|
|
|
meta = {
|
|
description = "X virtual framebuffer";
|
|
longDescription = ''
|
|
Xvfb or X virtual framebuffer is a display server implementing the X11 display server
|
|
protocol. In contrast to other display servers, Xvfb performs all graphical operations in
|
|
virtual memory without showing any screen output. From the point of view of the X client app,
|
|
it acts exactly like any other X display server, serving requests and sending events and
|
|
errors as appropriate. However, no output is shown. This virtual server does not require the
|
|
computer it is running on to have any kind of graphics adapter, a screen or any input device.
|
|
Is is primarily used for testing.
|
|
'';
|
|
inherit (xorg-server.meta)
|
|
homepage
|
|
license
|
|
mainProgram
|
|
;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|