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
|
2023-10-09 19:29:22 +00:00
|
|
|
, withLibunwind ? true, libunwind
|
2021-05-03 20:48:10 +00:00
|
|
|
, 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
|
2023-10-09 19:29:22 +00:00
|
|
|
, defaultFontPath ? ""
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xwayland";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "23.2.1";
|
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-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-7rwmksOqgGF9eEKLxux7kbJUqYIU0qcOmXCYUDzW75A=";
|
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
|
|
|
|
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
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.optionals withLibunwind [
|
|
|
|
libunwind
|
2021-05-03 20:48:10 +00:00
|
|
|
];
|
|
|
|
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")
|
2023-10-09 19:29:22 +00:00
|
|
|
(lib.mesonBool "libunwind" withLibunwind)
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "https://gitlab.freedesktop.org/xorg/xserver.git";
|
|
|
|
rev-prefix = "xwayland-";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|