2021-05-03 20:48:10 +00:00
|
|
|
{ egl-wayland
|
2021-12-06 16:07:01 +00:00
|
|
|
, libepoxy
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchurl
|
|
|
|
, fontutil
|
|
|
|
, lib
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXau
|
|
|
|
, libXaw
|
|
|
|
, libXdmcp
|
|
|
|
, libXext
|
|
|
|
, libXfixes
|
|
|
|
, libXfont2
|
|
|
|
, libXmu
|
|
|
|
, libXpm
|
|
|
|
, libXrender
|
|
|
|
, libXres
|
|
|
|
, libXt
|
|
|
|
, libdrm
|
|
|
|
, libtirpc
|
|
|
|
, libunwind
|
|
|
|
, libxcb
|
|
|
|
, libxkbfile
|
|
|
|
, libxshmfence
|
2022-04-03 18:54:34 +00:00
|
|
|
, libxcvt
|
2021-05-03 20:48:10 +00:00
|
|
|
, mesa
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, pixman
|
|
|
|
, stdenv
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2021-07-04 02:40:35 +00:00
|
|
|
, wayland-scanner
|
2021-05-03 20:48:10 +00:00
|
|
|
, xkbcomp
|
|
|
|
, xkeyboard_config
|
|
|
|
, xorgproto
|
|
|
|
, xtrans
|
|
|
|
, zlib
|
2020-10-07 09:15:18 +00:00
|
|
|
, defaultFontPath ? "" }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xwayland";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "23.2.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-fzPsKjTebmauG35Ehyw6IUYZKHLHGbms8ZKBTtur1MU=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
wayland-scanner
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
egl-wayland
|
2021-12-06 16:07:01 +00:00
|
|
|
libepoxy
|
2021-05-03 20:48:10 +00:00
|
|
|
fontutil
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libXau
|
|
|
|
libXaw
|
|
|
|
libXdmcp
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXfont2
|
|
|
|
libXmu
|
|
|
|
libXpm
|
|
|
|
libXrender
|
|
|
|
libXres
|
|
|
|
libXt
|
|
|
|
libdrm
|
|
|
|
libtirpc
|
|
|
|
libunwind
|
|
|
|
libxcb
|
|
|
|
libxkbfile
|
|
|
|
libxshmfence
|
2022-04-03 18:54:34 +00:00
|
|
|
libxcvt
|
2021-05-03 20:48:10 +00:00
|
|
|
mesa
|
|
|
|
openssl
|
|
|
|
pixman
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
xkbcomp
|
|
|
|
xorgproto
|
|
|
|
xtrans
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
mesonFlags = [
|
2023-02-22 10:55:15 +00:00
|
|
|
(lib.mesonBool "xwayland_eglstream" true)
|
2023-03-24 00:07:29 +00:00
|
|
|
(lib.mesonBool "xcsecurity" true)
|
2023-02-22 10:55:15 +00:00
|
|
|
(lib.mesonOption "default_font_path" defaultFontPath)
|
|
|
|
(lib.mesonOption "xkb_bin_dir" "${xkbcomp}/bin")
|
|
|
|
(lib.mesonOption "xkb_dir" "${xkeyboard_config}/etc/X11/xkb")
|
|
|
|
(lib.mesonOption "xkb_output_dir" "${placeholder "out"}/share/X11/xkb/compiled")
|
|
|
|
(lib.mesonBool "libunwind" (libunwind != null))
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An X server for interfacing X11 apps with the Wayland protocol";
|
|
|
|
homepage = "https://wayland.freedesktop.org/xserver.html";
|
|
|
|
license = licenses.mit;
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "Xwayland";
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = with maintainers; [ emantor ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2021-05-03 20:48:10 +00:00
|
|
|
}
|