From 20d4e8bd392ac12a9942fe6a21d2d73ed39231ea Mon Sep 17 00:00:00 2001 From: Viacheslav Lotsmanov Date: Tue, 6 Jul 2021 04:45:54 +0300 Subject: [PATCH] psi-plus: bugfix for missing gstreamer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../instant-messengers/psi-plus/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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";