patchance: Fix issues with qt not being patched (see #236762)

Fixes #228223

Co-authored-by: Tobias Bora <tobias.bora.list@gmail.com>
This commit is contained in:
PowerUser64
2023-08-29 17:21:10 +03:00
committed by Artturin
co-authored by Tobias Bora
parent 074dea1e11
commit 4fa859c5f1
2 changed files with 12 additions and 6 deletions
+11 -3
View File
@@ -1,4 +1,4 @@
{ lib, fetchurl, buildPythonApplication, libjack2, pyqt5, qttools, which }:
{ lib, fetchurl, buildPythonApplication, libjack2, pyqt5, qt5, which, bash }:
buildPythonApplication rec {
pname = "patchance";
@@ -13,10 +13,11 @@ buildPythonApplication rec {
nativeBuildInputs = [
pyqt5 # pyuic5 and pyrcc5 to build resources.
qttools # lrelease to build translations.
qt5.qttools # lrelease to build translations.
which # which to find lrelease.
qt5.wrapQtAppsHook
];
buildInputs = [ libjack2 ];
buildInputs = [ libjack2 bash ];
propagatedBuildInputs = [ pyqt5 ];
dontWrapQtApps = true; # The program is a python script.
@@ -27,8 +28,15 @@ buildPythonApplication rec {
"--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ libjack2 ])
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
postFixup = ''
wrapPythonProgramsIn "$out/share/patchance/src" "$out $pythonPath"
for file in $out/bin/*; do
wrapQtApp "$file"
done
'';
meta = with lib; {
+1 -3
View File
@@ -11817,9 +11817,7 @@ with pkgs;
patchage = callPackage ../applications/audio/patchage { };
patchance = python3Packages.callPackage ../applications/audio/patchance {
inherit (qt5) qttools;
};
patchance = python3Packages.callPackage ../applications/audio/patchance { };
patatt = callPackage ../development/tools/patatt { };