From 69ebbfbc7fe60a767f7fab1b89c08b55d2b7e373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=BA=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A5?= Date: Tue, 18 Mar 2025 10:34:23 +0700 Subject: [PATCH] psi-plus: make plugins-only libs optional --- .../instant-messengers/psi-plus/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix index c962880e04ff..6cef9d8a9c63 100644 --- a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix +++ b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix @@ -14,10 +14,7 @@ hunspell, libsecret, libgcrypt, - libotr, - html-tidy, libgpg-error, - libsignal-protocol-c, usrsctp, chatType ? "basic", # See the assertion below for available options @@ -25,6 +22,9 @@ qtwebengine, enablePlugins ? true, + html-tidy, + libotr, + libsignal-protocol-c, # Voice messages voiceMessagesSupport ? true, @@ -80,16 +80,18 @@ mkDerivation rec { hunspell libsecret libgcrypt - libotr - html-tidy libgpg-error - libsignal-protocol-c usrsctp ] ++ lib.optionals voiceMessagesSupport [ gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good ] + ++ lib.optionals enablePlugins [ + html-tidy + libotr + libsignal-protocol-c + ] ++ lib.optionals (chatType == "webkit") [ qtwebkit ]