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";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "22.1.7";
|
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";
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-1Tr6xscZU/XPZtA9KJ2s2JYdpb0wnB3/El1ZVdnbX3Y=";
|
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 = [
|
2021-07-03 03:11:41 +00:00
|
|
|
"-Dxwayland_eglstream=true"
|
|
|
|
"-Ddefault_font_path=${defaultFontPath}"
|
2021-05-03 20:48:10 +00:00
|
|
|
"-Dxkb_bin_dir=${xkbcomp}/bin"
|
|
|
|
"-Dxkb_dir=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"-Dxkb_output_dir=${placeholder "out"}/share/X11/xkb/compiled"
|
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;
|
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
|
|
|
}
|