Merge pull request #238646 from OPNA2608/fix/revolt-ozone

revolt-desktop: Use Ozone if NIXOS_OZONE_WL set
This commit is contained in:
Sandro 2023-07-02 17:20:15 +02:00 committed by GitHub
commit ed5d9112a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,8 @@ stdenv.mkDerivation rec {
postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar
--add-flags $out/share/${pname}/resources/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}"
'';
meta = with lib; {