wlroots: make xwayland optional

This commit is contained in:
Yureka 2021-10-11 21:24:30 +02:00 committed by Yuka
parent f9497f052e
commit ab63bfb36b

View file

@ -1,7 +1,9 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland-scanner { lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland-scanner
, libGL, wayland, wayland-protocols, libinput, libxkbcommon, pixman , libGL, wayland, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa , xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg, xcbutilrenderutil, xwayland, seatd , libpng, ffmpeg, xcbutilrenderutil, seatd
, enableXWayland ? true, xwayland ? null
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -25,8 +27,14 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
libGL wayland wayland-protocols libinput libxkbcommon pixman libGL wayland wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg xcbutilrenderutil xwayland seatd libpng ffmpeg xcbutilrenderutil seatd
]; ]
++ lib.optional enableXWayland xwayland
;
mesonFlags =
lib.optional (!enableXWayland) "-Dxwayland=disabled"
;
postFixup = '' postFixup = ''
# Install ALL example programs to $examples: # Install ALL example programs to $examples: