about summary refs log tree commit diff
path: root/pkgs/applications/graphics/figma-linux
diff options
context:
space:
mode:
authorMilo Moisson <milomoisson@gmail.com>2024-05-19 12:39:05 +0200
committerMilo Moisson <milomoisson@gmail.com>2024-05-19 12:42:24 +0200
commitfb609d558bdc475755dc138015fe42d02a403406 (patch)
tree49baa0587ef380a81aa8bddfba4531f98a621a83 /pkgs/applications/graphics/figma-linux
parent751a2882d09983ae64afb26eb2222ad4edc1e071 (diff)
figma-linux: pass wrapper gapps arguments directly
this avoids double wrapping the `figma-linux` binary
Diffstat (limited to 'pkgs/applications/graphics/figma-linux')
-rw-r--r--pkgs/applications/graphics/figma-linux/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/figma-linux/default.nix b/pkgs/applications/graphics/figma-linux/default.nix
index 0cfc784789ebf..3ddbf0713539c 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