git.iko.soy/typeable/nixpkgs
on master help sign in
fio: 3.5 -> 3.6, enable on darwin (#39452)

commit31e9e752ae0b998598ee1650b8c0db9cb04a0349 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateWed 25 Apr 2018, 03:16 (9 years ago) parent42c87d4
1 file changed+5−1
pkgs/tools/system/fio/default.nix+5−1
pkgs/tools/system/fio/default.nix+5−1
@@ -15,11 +15,15 @@ stdenv.mkDerivation rec {
1515 inherit sha256;
1616 };
1717
18− buildInputs = [ libaio python zlib ];
18+ buildInputs = [ python zlib ]
19+ ++ stdenv.lib.optional (!stdenv.isDarwin) libaio;
1920
2021 enableParallelBuilding = true;
2122
2223 postPatch = ''
24+ substituteInPlace Makefile \
25+ --replace "mandir = /usr/share/man" "mandir = \$(prefix)/man" \
26+ --replace "sharedir = /usr/share/fio" "sharedir = \$(prefix)/share/fio"
2327 substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
2428 '';
2529