3
0
Fork 0
forked from mirrors/nixpkgs

river: make XWayland support optional (#157002)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Sage Hane 2022-01-28 13:14:38 +00:00 committed by GitHub
parent 7be1220527
commit 07029944a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,8 @@
, udev
, libevdev
, libinput
, libX11
, libGL
, xwaylandSupport ? true, libX11
}:
stdenv.mkDerivation rec {
@ -39,9 +39,8 @@ stdenv.mkDerivation rec {
udev
libevdev
libinput
libX11
libGL
];
] ++ lib.optional xwaylandSupport libX11;
dontConfigure = true;
@ -51,7 +50,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
zig build -Drelease-safe -Dcpu=baseline -Dxwayland -Dman-pages --prefix $out install
zig build -Drelease-safe -Dcpu=baseline ${lib.optionalString xwaylandSupport "-Dxwayland"} -Dman-pages --prefix $out install
runHook postInstall
'';