Merge pull request #264153 from aserowy/master

microsoft-edge: added capability to add additional cmd line args and NIXOS_OZONE_WL support
This commit is contained in:
Emily Trau
2023-11-04 20:26:50 +11:00
committed by GitHub
@@ -32,6 +32,9 @@
, libuuid
, systemd
, wayland
# command line arguments which are always set e.g "--disable-gpu"
, commandLineArgs ? ""
}:
let
@@ -179,7 +182,9 @@ stdenv.mkDerivation rec {
postFixup = ''
wrapProgram "$out/bin/${longName}" \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.pname}-${gtk3.version}"
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.pname}-${gtk3.version}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags ${lib.escapeShellArg commandLineArgs}
'';
passthru.updateScript = ./update.py;