about summary refs log tree commit diff
path: root/pkgs/applications/audio/raysession
diff options
context:
space:
mode:
authorTobias Bora <tobias.bora@gmail.com>2023-08-29 19:56:23 +0200
committerGitHub <noreply@github.com>2023-08-29 20:56:23 +0300
commite580181a13b16c737ce8c63dbf55fc4f60da1e30 (patch)
tree2910b2c88de65be190566fd4d7495d6596e4fff5 /pkgs/applications/audio/raysession
parentd213b1222383beeb7bd5005ac2710a1928f0e21c (diff)
downloadnixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar.gz
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar.bz2
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar.lz
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar.xz
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.tar.zst
nixlib-e580181a13b16c737ce8c63dbf55fc4f60da1e30.zip
raysession: Fix issues with qt not being patched (can’t find platform, qt version mismatch error etc) (#236762)
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Diffstat (limited to 'pkgs/applications/audio/raysession')
-rw-r--r--pkgs/applications/audio/raysession/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/audio/raysession/default.nix b/pkgs/applications/audio/raysession/default.nix
index 279d0f85b218..f12fd7a15c00 100644
--- a/pkgs/applications/audio/raysession/default.nix
+++ b/pkgs/applications/audio/raysession/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, buildPythonApplication, libjack2, pydbus, pyliblo, pyqt5, qttools, which, bash }:
+{ lib, fetchurl, buildPythonApplication, libjack2, pydbus, pyliblo, pyqt5, which, bash, qt5 }:
 
 buildPythonApplication rec {
   pname = "raysession";
@@ -20,8 +20,9 @@ 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 bash ];
   propagatedBuildInputs = [ pydbus pyliblo pyqt5 ];
@@ -36,6 +37,9 @@ buildPythonApplication rec {
 
   postFixup = ''
     wrapPythonProgramsIn "$out/share/raysession/src" "$out $pythonPath"
+    for file in $out/bin/*; do
+      wrapQtApp "$file"
+    done
   '';
 
   meta = with lib; {