Add wayland support

This commit is contained in:
Werner Buck
2022-12-28 20:49:15 +01:00
committed by GitHub
parent fbc4d64b50
commit 5c90ea3fa6
@@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
postFixup = ''
makeWrapper ${electron_21}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc libsecret ]}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc libsecret ]}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
'';
meta = with lib; {