From c6384fec114277d04352b75a4f1ecc0496144591 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 19 Nov 2024 11:01:41 -0500 Subject: [PATCH] telegram-desktop: always wrap with wrapGAppsHook3 Required for invoking the file selector --- .../telegram/telegram-desktop/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix index aec348dfa91c1..cc34f27acfa04 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix @@ -20,13 +20,10 @@ stdenv.mkDerivation (finalAttrs: { inherit unwrapped; - nativeBuildInputs = - [ - wrapQtAppsHook - ] - ++ lib.optionals withWebkit [ - wrapGAppsHook3 - ]; + nativeBuildInputs = [ + wrapQtAppsHook + wrapGAppsHook3 + ]; buildInputs = [ @@ -58,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - preFixup = lib.optionalString (stdenv.hostPlatform.isLinux && withWebkit) '' + preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' qtWrapperArgs+=("''${gappsWrapperArgs[@]}") '';