From 10f1d293c4a754785140358717c414b1847c3028 Mon Sep 17 00:00:00 2001 From: wyndon Date: Sun, 22 May 2022 18:17:33 +0200 Subject: [PATCH] session-desktop-appimage: wayland support --- .../instant-messengers/session-desktop-appimage/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix b/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix index 0c11beb9ebc2..c51ebd81bf1c 100644 --- a/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix +++ b/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix @@ -4,6 +4,7 @@ , stdenvNoCC , fetchurl , appimageTools +, makeWrapper }: let @@ -25,7 +26,7 @@ stdenvNoCC.mkDerivation { inherit version pname; src = appimage; - nativeBuildInputs = [ copyDesktopItems ]; + nativeBuildInputs = [ copyDesktopItems makeWrapper ]; desktopItems = [ (makeDesktopItem { @@ -46,6 +47,9 @@ stdenvNoCC.mkDerivation { mkdir -p $out/ cp -r bin $out/bin + wrapProgram $out/bin/session-desktop-appimage-${version} \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" + runHook postInstall '';