summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/flent
diff options
context:
space:
mode:
authorManuel Mendez <mmendez534@gmail.com>2019-08-08 08:57:04 -0400
committerManuel Mendez <mmendez534@gmail.com>2019-08-08 08:57:04 -0400
commita48c4843cd228f041dc75a120cbfa216e9a2f66a (patch)
treea417cecfddee7e31eaec37eca7a5a4dccb0a075f /pkgs/applications/networking/flent
parenta88232c31ae733a5bc148175ea20549cc81e23b2 (diff)
flent: use wrapQtAppsHook
Diffstat (limited to 'pkgs/applications/networking/flent')
-rw-r--r--pkgs/applications/networking/flent/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/networking/flent/default.nix b/pkgs/applications/networking/flent/default.nix
index ed7e8ae9d6ad..9b170735dcff 100644
--- a/pkgs/applications/networking/flent/default.nix
+++ b/pkgs/applications/networking/flent/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonApplication, fetchPypi, matplotlib, procps, pyqt5
+{ stdenv, buildPythonApplication, fetchPypi, matplotlib, procps, pyqt5, qt5
, sphinx }:
buildPythonApplication rec {
@@ -10,11 +10,18 @@ buildPythonApplication rec {
};
buildInputs = [ sphinx ];
+ nativeBuildInputs = [ qt5.wrapQtAppsHook ];
checkInputs = [ procps ];
propagatedBuildInputs = [ matplotlib procps pyqt5 ];
+ postInstall = ''
+ for program in $out/bin/*; do
+ wrapQtApp $program --prefix PYTHONPATH : $PYTHONPATH
+ done
+ '';
+
meta = with stdenv.lib; {
description = "The FLExible Network Tester";
homepage = "https://flent.org";