figma-linux: add NIXOS_OZONE_WL workaround

This commit is contained in:
Milo Moisson
2024-05-12 13:46:43 +02:00
parent 8949291221
commit 751a2882d0
@@ -4,6 +4,7 @@
, fetchurl
, autoPatchelfHook
, dpkg
, makeWrapper
, wrapGAppsHook3
, ...
}:
@@ -17,7 +18,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-9UfyCqgsg9XAFyZ7V7TogkQou4x+ixFUfjXZ1/qlDmA=";
};
nativeBuildInputs = [ autoPatchelfHook dpkg wrapGAppsHook3 ];
nativeBuildInputs = [
autoPatchelfHook
dpkg
makeWrapper
wrapGAppsHook3
];
buildInputs = with pkgs;[
alsa-lib
@@ -60,6 +66,9 @@ stdenv.mkDerivation (finalAttrs: {
cp -r usr/* $out
wrapProgramShell $out/bin/figma-linux \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
runHook postInstall
'';