mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
Merge pull request #153918 from Mic92/fio
fio: add missing six dependency
This commit is contained in:
commit
4601b356f8
1 changed files with 9 additions and 4 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue