insomnia: add electron wayland flags

This commit is contained in:
Thea Schöbl 2023-08-29 13:59:28 +02:00
parent dba6d77ad2
commit 0ed874c003
No known key found for this signature in database
GPG Key ID: 68FFFB1EC18788CA

View File

@ -82,7 +82,10 @@ in stdenv.mkDerivation rec {
'';
preFixup = ''
wrapProgram "$out/bin/insomnia" "''${gappsWrapperArgs[@]}" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
wrapProgramShell "$out/bin/insomnia" \
"''${gappsWrapperArgs[@]}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" \
--prefix LD_LIBRARY_PATH : ${runtimeLibs}
'';
meta = with lib; {