about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/patray/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/audio/patray/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/audio/patray/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/tools/audio/patray/default.nix b/nixpkgs/pkgs/tools/audio/patray/default.nix
index 5f86f1b88557..ff7b55689b8f 100644
--- a/nixpkgs/pkgs/tools/audio/patray/default.nix
+++ b/nixpkgs/pkgs/tools/audio/patray/default.nix
@@ -1,5 +1,6 @@
 { lib
 , python3
+, fetchPypi
 , qt5
 }:
 
@@ -7,7 +8,7 @@ python3.pkgs.buildPythonApplication rec {
   pname = "patray";
   version = "0.1.1";
 
-  src = python3.pkgs.fetchPypi {
+  src = fetchPypi {
     inherit version pname;
     sha256 = "0vaapn2p4257m1d5nbnwnh252b7lhl00560gr9pqh2b7xqm1bh6g";
   };
@@ -29,11 +30,9 @@ python3.pkgs.buildPythonApplication rec {
 
   nativeBuildInputs = [ qt5.wrapQtAppsHook ];
   postFixup = ''
-    wrapQtApp $out/bin/patray
+    wrapQtApp $out/bin/patray --prefix QT_PLUGIN_PATH : ${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}
   '';
 
-
-
   meta = with lib; {
     description = "Yet another tray pulseaudio frontend";
     homepage = "https://github.com/pohmelie/patray";