patchance: provide libjack2 at runtime

This commit is contained in:
Orivej Desh 2023-04-01 00:59:46 +00:00
parent 8ea86b76f0
commit 7d8b242702

View file

@ -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"
'';