summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-01-08 00:42:21 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-01-08 00:27:24 +0000
commitdaec3524d442f8ef53bcdf4afbcee08956d6d8fe (patch)
treee67adf7f592d88157cbc83662557bf8bb1c745f5
parentpython3Packages.discordpy: relax aiohttp constraint (diff)
downloadnixpkgs-daec3524d442f8ef53bcdf4afbcee08956d6d8fe.tar.gz
fio: add missing six dependency
(cherry picked from commit de6739642c187656e8426496adc0e3926c0ad2d7)
-rw-r--r--pkgs/tools/system/fio/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/tools/system/fio/default.nix b/pkgs/tools/system/fio/default.nix
index dedcbc6f1e4c..10a26f1fd9ec 100644
--- a/pkgs/tools/system/fio/default.nix
+++ b/pkgs/tools/system/fio/default.nix
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [ python3 zlib ]
++ lib.optional (!stdenv.isDarwin) libaio;
- nativeBuildInputs = [ makeWrapper ];
+ nativeBuildInputs = [ makeWrapper python3.pkgs.wrapPython ];
strictDeps = true;
@@ -29,9 +29,14 @@ stdenv.mkDerivation rec {
substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
'';
- postInstall = lib.optionalString withGnuplot ''
- wrapProgram $out/bin/fio2gnuplot \
- --prefix PATH : ${lib.makeBinPath [ gnuplot ]}
+ pythonPath = [ python3.pkgs.six ];
+
+ makeWrapperArgs = lib.optional withGnuplot [
+ "--prefix PATH : ${lib.makeBinPath [ gnuplot ]}"
+ ];
+
+ postInstall = ''
+ wrapPythonProgramsIn "$out/bin" "$out $pythonPath"
'';
meta = with lib; {