From ab63bfb36b39856109d9c4ba1cc148105e1e2bf2 Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 11 Oct 2021 21:24:30 +0200 Subject: [PATCH] wlroots: make xwayland optional --- pkgs/development/libraries/wlroots/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix index c22999dd6f0e..cf188756ffde 100644 --- a/pkgs/development/libraries/wlroots/default.nix +++ b/pkgs/development/libraries/wlroots/default.nix @@ -1,7 +1,9 @@ { lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wayland-scanner , libGL, wayland, wayland-protocols, libinput, libxkbcommon, pixman , xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa -, libpng, ffmpeg, xcbutilrenderutil, xwayland, seatd +, libpng, ffmpeg, xcbutilrenderutil, seatd + +, enableXWayland ? true, xwayland ? null }: stdenv.mkDerivation rec { @@ -25,8 +27,14 @@ stdenv.mkDerivation rec { buildInputs = [ libGL wayland wayland-protocols libinput libxkbcommon pixman 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 = '' # Install ALL example programs to $examples: