1{ stdenv, fetchFromGitHub, libaio, python, zlib }:
2
3let
4 version = "2.12";
5 sha256 = "1m0fx0x1v2375vyxhd2i12b9w1qy4yh75f6qhwlcr78himcsmpp9";
6in
7
8stdenv.mkDerivation rec {
9 name = "fio-${version}";
10
11 src = fetchFromGitHub {
12 owner = "axboe";
13 repo = "fio";
14 rev = "fio-${version}";
15 inherit sha256;
16 };
17
18 buildInputs = [ libaio python zlib ];
19
20 enableParallelBuilding = true;
21
22 postPatch = ''
23 substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
24 '';
25
26 meta = with stdenv.lib; {
27 homepage = "http://git.kernel.dk/?p=fio.git;a=summary";
28 description = "Flexible IO Tester - an IO benchmark tool";
29 license = licenses.gpl2;
30 platforms = platforms.unix;
31 };
32}