about summary refs log tree commit diff
path: root/pkgs/applications/audio/radiotray-ng
diff options
context:
space:
mode:
authorannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-12-04 04:15:20 +0000
committerannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-12-07 04:08:46 +0000
commite286d7e6e365c052e141f8441b883f0faeb2d7fe (patch)
tree83461c82021cecb56c0e20502583cd98072962e1 /pkgs/applications/audio/radiotray-ng
parent0c6d8c783336a59f4c59d4a6daed6ab269c4b361 (diff)
radiotray-ng: add libsoup_3 and glib-networking; fix runtime
gstreamer libgstsoup plugin dlopens libsoup_3 and requires
glib-networking to work. This change adds libsoup_3 and LD_LIBRARY_PATH
so the dlopen can locate libsoup_3.
Diffstat (limited to 'pkgs/applications/audio/radiotray-ng')
-rw-r--r--pkgs/applications/audio/radiotray-ng/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/audio/radiotray-ng/default.nix b/pkgs/applications/audio/radiotray-ng/default.nix
index 3196d492fb500..63e2bd7f2dccd 100644
--- a/pkgs/applications/audio/radiotray-ng/default.nix
+++ b/pkgs/applications/audio/radiotray-ng/default.nix
@@ -17,7 +17,9 @@
 , libxdg_basedir
 , wxGTK
 # GStreamer
+, glib-networking
 , gst_all_1
+, libsoup_3
 # User-agent info
 , lsb-release
 # rt2rtng
@@ -58,6 +60,8 @@ stdenv.mkDerivation rec {
     libxdg_basedir
     lsb-release
     wxGTK
+    # for https gstreamer / libsoup
+    glib-networking
   ] ++ gstInputs
     ++ pythonInputs;
 
@@ -89,6 +93,8 @@ stdenv.mkDerivation rec {
   preFixup = ''
     gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ dbus ]})
     wrapProgram $out/bin/rt2rtng --prefix PYTHONPATH : $PYTHONPATH
+    # for GStreamer
+    gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${lib.getLib libsoup_3}/lib")
   '';
 
   meta = with lib; {