diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/figma-linux/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/graphics/figma-linux/default.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/figma-linux/default.nix b/nixpkgs/pkgs/applications/graphics/figma-linux/default.nix index 6c794c9706bb..72f5ed882c40 100644 --- a/nixpkgs/pkgs/applications/graphics/figma-linux/default.nix +++ b/nixpkgs/pkgs/applications/graphics/figma-linux/default.nix @@ -4,20 +4,26 @@ , fetchurl , autoPatchelfHook , dpkg +, makeWrapper , wrapGAppsHook3 , ... }: with lib; stdenv.mkDerivation (finalAttrs: { pname = "figma-linux"; - version = "0.11.3"; + version = "0.11.4"; src = fetchurl { url = "https://github.com/Figma-Linux/figma-linux/releases/download/v${finalAttrs.version}/figma-linux_${finalAttrs.version}_linux_amd64.deb"; - hash = "sha256-9UfyCqgsg9XAFyZ7V7TogkQou4x+ixFUfjXZ1/qlDmA="; + hash = "sha256-ukUsNgWOtIRe54vsmRdI62syjIPwSsgNV7kITCw0YUQ="; }; - nativeBuildInputs = [ autoPatchelfHook dpkg wrapGAppsHook3 ]; + nativeBuildInputs = [ + autoPatchelfHook + dpkg + makeWrapper + wrapGAppsHook3 + ]; buildInputs = with pkgs;[ alsa-lib @@ -52,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 @@ -60,6 +70,10 @@ 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 ''; |