diff options
author | PowerUser64 <blake@blakenorth.net> | 2023-06-08 17:55:47 -0700 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-08-29 17:21:10 +0300 |
commit | 4fa859c5f1e5346870954e455afa52fc591fd5c5 (patch) | |
tree | 89bc57eaf269f162109d07e745c9d976a6d1ab5a /pkgs/applications/audio/patchance | |
parent | 074dea1e11c459588b4da209cc487d57e1257539 (diff) |
patchance: Fix issues with qt not being patched (see #236762)
Fixes #228223 Co-authored-by: Tobias Bora <tobias.bora.list@gmail.com>
Diffstat (limited to 'pkgs/applications/audio/patchance')
-rw-r--r-- | pkgs/applications/audio/patchance/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/audio/patchance/default.nix b/pkgs/applications/audio/patchance/default.nix index 99e622bcf70cc..25899f34b9f6f 100644 --- a/pkgs/applications/audio/patchance/default.nix +++ b/pkgs/applications/audio/patchance/default.nix @@ -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; { |