From fb609d558bdc475755dc138015fe42d02a403406 Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Sun, 19 May 2024 12:39:05 +0200 Subject: [PATCH] figma-linux: pass wrapper gapps arguments directly this avoids double wrapping the `figma-linux` binary --- pkgs/applications/graphics/figma-linux/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/figma-linux/default.nix b/pkgs/applications/graphics/figma-linux/default.nix index 0cfc784789eb..3ddbf0713539 100644 --- a/pkgs/applications/graphics/figma-linux/default.nix +++ b/pkgs/applications/graphics/figma-linux/default.nix @@ -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