Merge pull request #115552 from Emantor/topic/xwayland_bump

xwayland: 1.20.10 -> 21.1.1
This commit is contained in:
Martin Weinelt 2021-04-27 13:31:08 +02:00 committed by GitHub
commit 8b3e8d917d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,40 +1,100 @@
{ lib, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config { egl-wayland
, epoxy, libxslt, libunwind, makeWrapper, 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 ? "" }: , defaultFontPath ? "" }:
with lib; stdenv.mkDerivation rec {
xorgserver.overrideAttrs (oldAttrs: { pname = "xwayland";
version = "21.1.1";
name = "xwayland-${xorgserver.version}"; src = fetchurl {
buildInputs = oldAttrs.buildInputs ++ [ egl-wayland ]; url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
propagatedBuildInputs = oldAttrs.propagatedBuildInputs sha256 = "sha256-MfJhzlG77namyj7AKqNn/6K176K5hBLfV8zv16GQA84=";
++ [wayland wayland-protocols epoxy libxslt makeWrapper libunwind]; };
configureFlags = [ nativeBuildInputs = [ pkg-config meson ninja ];
"--disable-docs" buildInputs = [
"--disable-devel-docs" egl-wayland
"--enable-xwayland" epoxy
"--enable-xwayland-eglstream" fontutil
"--disable-xorg" libGL
"--disable-xvfb" libGLU
"--disable-xnest" libX11
"--disable-xquartz" libXau
"--disable-xwin" libXaw
"--enable-glamor" libXdmcp
"--with-default-font-path=${defaultFontPath}" libXext
"--with-xkb-bin-directory=${xkbcomp}/bin" libXfixes
"--with-xkb-path=${xkeyboard_config}/etc/X11/xkb" libXfont2
"--with-xkb-output=$(out)/share/X11/xkb/compiled" 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"
]; ];
postInstall = '' meta = with lib; {
rm -fr $out/share/X11/xkb/compiled
'';
meta = {
description = "An X server for interfacing X11 apps with the Wayland protocol"; description = "An X server for interfacing X11 apps with the Wayland protocol";
homepage = "https://wayland.freedesktop.org/xserver.html"; homepage = "https://wayland.freedesktop.org/xserver.html";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ emantor ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
}) }