about summary refs log tree commit diff
path: root/pkgs/applications/audio/raysession
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2023-04-01 01:00:17 +0000
committerOrivej Desh <orivej@gmx.fr>2023-04-01 01:04:06 +0000
commit0af37850d797a1bb1b04238cc339a04d056305e2 (patch)
tree33d51b945336d8b1514a1cac5926d3af4667be45 /pkgs/applications/audio/raysession
parent7d8b242702a4cf36aa984448ada1f71223981760 (diff)
raysession: provide libjack2 at runtime
Diffstat (limited to 'pkgs/applications/audio/raysession')
-rw-r--r--pkgs/applications/audio/raysession/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/audio/raysession/default.nix b/pkgs/applications/audio/raysession/default.nix
index bc1a85abafa22..2cae90bdd8d0d 100644
--- a/pkgs/applications/audio/raysession/default.nix
+++ b/pkgs/applications/audio/raysession/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, buildPythonApplication, pydbus, pyliblo, pyqt5, qttools, which }:
+{ lib, fetchurl, buildPythonApplication, libjack2, pydbus, pyliblo, pyqt5, qttools, which }:
 
 buildPythonApplication rec {
   pname = "raysession";
@@ -23,13 +23,17 @@ buildPythonApplication rec {
     qttools # lrelease to build translations.
     which   # which to find lrelease.
   ];
-
+  buildInputs = [ libjack2 ];
   propagatedBuildInputs = [ pydbus pyliblo pyqt5 ];
 
   dontWrapQtApps = true; # The program is a python script.
 
   installFlags = [ "PREFIX=$(out)" ];
 
+  makeWrapperArgs = [
+    "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ libjack2 ])
+  ];
+
   postFixup = ''
     wrapPythonProgramsIn "$out/share/raysession/src" "$out $pythonPath"
   '';