13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
20 rev = "fio-${version}";
21 sha256 = "sha256-hjU6be1+x4YsY9hztqSD5zIxojs6qRZH7GwEkxPwdus=";
27 ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) libaio;
29 # ./configure does not support autoconf-style --build=/--host=.
31 configurePlatforms = [ ];
35 python3.pkgs.wrapPython
40 enableParallelBuilding = true;
43 substituteInPlace Makefile \
44 --replace "mandir = /usr/share/man" "mandir = \$(prefix)/man" \
45 --replace "sharedir = /usr/share/fio" "sharedir = \$(prefix)/share/fio"
46 substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
49 pythonPath = [ python3.pkgs.six ];
51 makeWrapperArgs = lib.optionals withGnuplot [
52 "--prefix PATH : ${lib.makeBinPath [ gnuplot ]}"
56 wrapPythonProgramsIn "$out/bin" "$out $pythonPath"
60 description = "Flexible IO Tester - an IO benchmark tool";
61 homepage = "https://git.kernel.dk/cgit/fio/";
62 license = licenses.gpl2Plus;
63 platforms = platforms.unix;