2019-05-01 16:46:28 +02:00
|
|
|
{ stdenv, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config, epoxy, libxslt, libunwind, makeWrapper, egl-wayland }:
|
2014-11-20 07:37:19 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2018-06-09 02:10:22 +02:00
|
|
|
xorgserver.overrideAttrs (oldAttrs: {
|
2014-11-20 07:37:19 +01:00
|
|
|
|
|
|
|
name = "xwayland-${xorgserver.version}";
|
2019-05-01 16:46:28 +02:00
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ egl-wayland ];
|
2017-08-14 22:39:03 +02:00
|
|
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs
|
2017-02-12 19:18:04 +01:00
|
|
|
++ [wayland wayland-protocols epoxy libxslt makeWrapper libunwind];
|
2014-11-20 07:37:19 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-docs"
|
|
|
|
"--disable-devel-docs"
|
|
|
|
"--enable-xwayland"
|
2019-05-01 16:46:28 +02:00
|
|
|
"--enable-xwayland-eglstream"
|
2014-11-20 07:37:19 +01:00
|
|
|
"--disable-xorg"
|
|
|
|
"--disable-xvfb"
|
|
|
|
"--disable-xnest"
|
|
|
|
"--disable-xquartz"
|
|
|
|
"--disable-xwin"
|
2017-10-26 15:57:42 +02:00
|
|
|
"--enable-glamor"
|
2014-11-20 07:37:19 +01:00
|
|
|
"--with-default-font-path="
|
|
|
|
"--with-xkb-bin-directory=${xkbcomp}/bin"
|
|
|
|
"--with-xkb-path=${xkeyboard_config}/etc/X11/xkb"
|
2015-06-27 11:40:04 +02:00
|
|
|
"--with-xkb-output=$(out)/share/X11/xkb/compiled"
|
2014-11-20 07:37:19 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -fr $out/share/X11/xkb/compiled
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An X server for interfacing X11 apps with the Wayland protocol";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://wayland.freedesktop.org/xserver.html;
|
2014-11-20 07:37:19 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2014-12-25 09:08:10 +01:00
|
|
|
};
|
2018-06-09 02:10:22 +02:00
|
|
|
})
|