2021-03-09 15:20:55 +00:00
|
|
|
{ egl-wayland
|
|
|
|
, epoxy
|
|
|
|
, fetchurl
|
|
|
|
, fontutil
|
|
|
|
, lib
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXau
|
|
|
|
, libXaw
|
|
|
|
, libXdmcp
|
|
|
|
, libXext
|
|
|
|
, libXfixes
|
|
|
|
, libXfont2
|
|
|
|
, libXmu
|
|
|
|
, libXpm
|
|
|
|
, libXrender
|
|
|
|
, libXres
|
|
|
|
, libXt
|
|
|
|
, libdrm
|
|
|
|
, libtirpc
|
|
|
|
, libunwind
|
|
|
|
, libxcb
|
|
|
|
, libxkbfile
|
|
|
|
, libxshmfence
|
|
|
|
, mesa
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, pixman
|
|
|
|
, stdenv
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2021-07-03 13:45:54 +00:00
|
|
|
, wayland-scanner
|
2021-03-09 15:20:55 +00:00
|
|
|
, xkbcomp
|
|
|
|
, xkeyboard_config
|
|
|
|
, xorgproto
|
|
|
|
, xtrans
|
|
|
|
, zlib
|
2020-09-02 01:59:58 +00:00
|
|
|
, defaultFontPath ? "" }:
|
2014-11-20 06:37:19 +00:00
|
|
|
|
2021-03-09 15:20:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-20 06:37:19 +00:00
|
|
|
|
2021-03-09 15:20:55 +00:00
|
|
|
pname = "xwayland";
|
2021-11-09 20:32:55 +00:00
|
|
|
version = "21.1.3";
|
2021-03-09 15:20:55 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
|
2021-11-09 20:32:55 +00:00
|
|
|
sha256 = "sha256-68J1fzn9TH2xZU/YZZFYnCEaogFy1DpU93rlZ87b+KI=";
|
2021-03-09 15:20:55 +00:00
|
|
|
};
|
2021-07-03 13:45:54 +00:00
|
|
|
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
wayland-scanner
|
|
|
|
];
|
2021-03-09 15:20:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
egl-wayland
|
|
|
|
epoxy
|
|
|
|
fontutil
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libXau
|
|
|
|
libXaw
|
|
|
|
libXdmcp
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXfont2
|
|
|
|
libXmu
|
|
|
|
libXpm
|
|
|
|
libXrender
|
|
|
|
libXres
|
|
|
|
libXt
|
|
|
|
libdrm
|
|
|
|
libtirpc
|
|
|
|
libunwind
|
|
|
|
libxcb
|
|
|
|
libxkbfile
|
|
|
|
libxshmfence
|
|
|
|
mesa
|
|
|
|
openssl
|
|
|
|
pixman
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
xkbcomp
|
|
|
|
xorgproto
|
|
|
|
xtrans
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
mesonFlags = [
|
2021-06-29 23:17:32 +00:00
|
|
|
"-Dxwayland_eglstream=true"
|
2021-06-30 00:44:00 +00:00
|
|
|
"-Ddefault_font_path=${defaultFontPath}"
|
2021-03-09 15:20:55 +00:00
|
|
|
"-Dxkb_bin_dir=${xkbcomp}/bin"
|
|
|
|
"-Dxkb_dir=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"-Dxkb_output_dir=${placeholder "out"}/share/X11/xkb/compiled"
|
2014-11-20 06:37:19 +00:00
|
|
|
];
|
|
|
|
|
2021-03-09 15:20:55 +00:00
|
|
|
meta = with lib; {
|
2014-11-20 06:37:19 +00:00
|
|
|
description = "An X server for interfacing X11 apps with the Wayland protocol";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wayland.freedesktop.org/xserver.html";
|
2014-11-20 06:37:19 +00:00
|
|
|
license = licenses.mit;
|
2021-03-09 15:20:55 +00:00
|
|
|
maintainers = with maintainers; [ emantor ];
|
2014-11-20 06:37:19 +00:00
|
|
|
platforms = platforms.linux;
|
2014-12-25 08:08:10 +00:00
|
|
|
};
|
2021-03-09 15:20:55 +00:00
|
|
|
}
|