diff options
author | Viacheslav Lotsmanov <lotsmanov89@gmail.com> | 2021-07-06 04:45:54 +0300 |
---|---|---|
committer | Viacheslav Lotsmanov <lotsmanov89@gmail.com> | 2021-07-06 15:42:11 +0300 |
commit | 20d4e8bd392ac12a9942fe6a21d2d73ed39231ea (patch) | |
tree | 50cca9b663d856fe9055ec57d32f29db4f6df9b9 /pkgs/applications/networking/instant-messengers/psi-plus | |
parent | 539fae1fc17bc0297d35314296eed4b42f9966f1 (diff) |
psi-plus: bugfix for missing gstreamer dependencies
Voice messages don’t work without gstreamer “base” and “good” plugins.
This change adds a an override for GST_PLUGIN_SYSTEM_PATH_1_0
environment variable providing necessary dependencies.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/psi-plus')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/psi-plus/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix index 03f8f7b961ab..c180cdb4e01f 100644 --- a/pkgs/applications/networking/instant-messengers/psi-plus/default.nix +++ b/pkgs/applications/networking/instant-messengers/psi-plus/default.nix @@ -3,6 +3,10 @@ , libidn, qca-qt5, libXScrnSaver, hunspell , libsecret, libgcrypt, libotr, html-tidy, libgpgerror, libsignal-protocol-c , usrsctp + +# Voice messages +, voiceMessagesSupport ? true +, gst_all_1 }: mkDerivation rec { @@ -27,8 +31,17 @@ mkDerivation rec { libidn qca-qt5 libXScrnSaver hunspell libsecret libgcrypt libotr html-tidy libgpgerror libsignal-protocol-c usrsctp + ] ++ lib.optionals voiceMessagesSupport [ + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good ]; + preFixup = lib.optionalString voiceMessagesSupport '' + qtWrapperArgs+=( + --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" + ) + ''; + meta = with lib; { homepage = "https://psi-plus.com"; description = "XMPP (Jabber) client"; |