From 7d8b242702a4cf36aa984448ada1f71223981760 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sat, 1 Apr 2023 00:59:46 +0000 Subject: [PATCH] patchance: provide libjack2 at runtime --- pkgs/applications/audio/patchance/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/patchance/default.nix b/pkgs/applications/audio/patchance/default.nix index accba200e37..99e622bcf70 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" '';