From 31e9e752ae0b998598ee1650b8c0db9cb04a0349 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 25 Apr 2018 03:16:13 -0400 Subject: [PATCH] fio: 3.5 -> 3.6, enable on darwin (#39452) --- pkgs/tools/system/fio/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/fio/default.nix b/pkgs/tools/system/fio/default.nix index ee7c70240b0a..6e63f467f600 100644 --- a/pkgs/tools/system/fio/default.nix +++ b/pkgs/tools/system/fio/default.nix @@ -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 '';