nixpkgs-suyu/pkgs/servers/x11/xorg/xwayland.nix

101 lines
1.6 KiB
Nix
Raw Normal View History

{ 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
, xkbcomp
, xkeyboard_config
, xorgproto
, xtrans
, zlib
, defaultFontPath ? "" }:
2014-11-20 07:37:19 +01:00
stdenv.mkDerivation rec {
2014-11-20 07:37:19 +01:00
pname = "xwayland";
version = "21.1.1";
src = fetchurl {
url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
sha256 = "sha256-MfJhzlG77namyj7AKqNn/6K176K5hBLfV8zv16GQA84=";
};
nativeBuildInputs = [ pkg-config meson ninja ];
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 = [
"-Dxwayland_eglstream=true"
"-Ddefault_font-path=${defaultFontPath}"
"-Dxkb_bin_dir=${xkbcomp}/bin"
"-Dxkb_dir=${xkeyboard_config}/etc/X11/xkb"
"-Dxkb_output_dir=${placeholder "out"}/share/X11/xkb/compiled"
2014-11-20 07:37:19 +01:00
];
meta = with lib; {
2014-11-20 07:37:19 +01:00
description = "An X server for interfacing X11 apps with the Wayland protocol";
homepage = "https://wayland.freedesktop.org/xserver.html";
2014-11-20 07:37:19 +01:00
license = licenses.mit;
maintainers = with maintainers; [ emantor ];
2014-11-20 07:37:19 +01:00
platforms = platforms.linux;
};
}