diff --git a/pkgs/applications/audio/patchance/default.nix b/pkgs/applications/audio/patchance/default.nix index accba200e37f..99e622bcf70c 100644 --- a/pkgs/applications/audio/patchance/default.nix +++ b/pkgs/applications/audio/patchance/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildPythonApplication, pyqt5, qttools, which }: +{ lib, fetchurl, buildPythonApplication, libjack2, pyqt5, qttools, which }: buildPythonApplication rec { pname = "patchance"; @@ -16,13 +16,17 @@ buildPythonApplication rec { qttools # lrelease to build translations. which # which to find lrelease. ]; - + buildInputs = [ libjack2 ]; propagatedBuildInputs = [ pyqt5 ]; dontWrapQtApps = true; # The program is a python script. installFlags = [ "PREFIX=$(out)" ]; + makeWrapperArgs = [ + "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ libjack2 ]) + ]; + postFixup = '' wrapPythonProgramsIn "$out/share/patchance/src" "$out $pythonPath" ''; diff --git a/pkgs/applications/audio/raysession/default.nix b/pkgs/applications/audio/raysession/default.nix index bc1a85abafa2..2cae90bdd8d0 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" '';