diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/x11/xorg/xwayland.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/x11/xorg/xwayland.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/x11/xorg/xwayland.nix b/nixpkgs/pkgs/servers/x11/xorg/xwayland.nix new file mode 100644 index 000000000000..06f54fd52073 --- /dev/null +++ b/nixpkgs/pkgs/servers/x11/xorg/xwayland.nix @@ -0,0 +1,36 @@ +{ stdenv, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config, epoxy, libxslt, libunwind, makeWrapper }: + +with stdenv.lib; + +xorgserver.overrideAttrs (oldAttrs: { + + name = "xwayland-${xorgserver.version}"; + propagatedBuildInputs = oldAttrs.propagatedBuildInputs + ++ [wayland wayland-protocols epoxy libxslt makeWrapper libunwind]; + configureFlags = [ + "--disable-docs" + "--disable-devel-docs" + "--enable-xwayland" + "--disable-xorg" + "--disable-xvfb" + "--disable-xnest" + "--disable-xquartz" + "--disable-xwin" + "--enable-glamor" + "--with-default-font-path=" + "--with-xkb-bin-directory=${xkbcomp}/bin" + "--with-xkb-path=${xkeyboard_config}/etc/X11/xkb" + "--with-xkb-output=$(out)/share/X11/xkb/compiled" + ]; + + postInstall = '' + rm -fr $out/share/X11/xkb/compiled + ''; + + meta = { + description = "An X server for interfacing X11 apps with the Wayland protocol"; + homepage = https://wayland.freedesktop.org/xserver.html; + license = licenses.mit; + platforms = platforms.linux; + }; +}) |