figma-linux: pass wrapper gapps arguments directly

this avoids double wrapping the `figma-linux` binary
This commit is contained in:
Milo Moisson
2024-05-19 12:42:24 +02:00
parent 751a2882d0
commit fb609d558b
@@ -58,6 +58,10 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = ".";
# Instead of double wrapping the binary, simply pass the `gappsWrapperArgs`
# to `makeWrapper` directly
dontWrapGApps = true;
installPhase = ''
runHook preInstall
@@ -67,6 +71,7 @@ stdenv.mkDerivation (finalAttrs: {
cp -r usr/* $out
wrapProgramShell $out/bin/figma-linux \
"''${gappsWrapperArgs[@]}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
runHook postInstall