psi-plus: make plugins-only libs optional

This commit is contained in:
โทสฺตัล
2025-03-18 10:52:16 +07:00
parent bcc5c18808
commit 69ebbfbc7f
@@ -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
]