fio: 3.5 -> 3.6, enable on darwin (#39452)

This commit is contained in:
Dmitry Kalinkin 2018-04-25 03:16:13 -04:00 committed by Jörg Thalheim
parent 42c87d4716
commit 31e9e752ae

View File

@ -15,11 +15,15 @@ stdenv.mkDerivation rec {
inherit sha256;
};
buildInputs = [ libaio python zlib ];
buildInputs = [ python zlib ]
++ stdenv.lib.optional (!stdenv.isDarwin) libaio;
enableParallelBuilding = true;
postPatch = ''
substituteInPlace Makefile \
--replace "mandir = /usr/share/man" "mandir = \$(prefix)/man" \
--replace "sharedir = /usr/share/fio" "sharedir = \$(prefix)/share/fio"
substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
'';