webcord: lock ozone wayland behind NIXOS_OZONE_WL envvar

This commit is contained in:
éclairevoyant 2023-10-20 12:59:46 -04:00
parent 46da009c99
commit 95cd49c3b3
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

View File

@ -62,7 +62,7 @@ buildNpmPackage rec {
makeWrapper '${lib.getExe electron_27}' $out/bin/webcord \
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/webcord \
--suffix PATH : "${binPath}" \
--add-flags "--ozone-platform-hint=auto" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags $out/lib/node_modules/webcord/
runHook postInstall