3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/fio/default.nix
Joachim Fasting ca730d4452
fio: 2.2.11 -> 2.9
This fixes the build against linux 4.4 headers; see
https://hydra.nixos.org/build/35697941/log/raw

Also set `platforms.unix` per what upstream claims.
2016-05-16 01:06:00 +02:00

33 lines
722 B
Nix

{ stdenv, fetchFromGitHub, libaio, python, zlib }:
let
version = "2.9";
sha256 = "10x5b1f1pdsh33kqzc8yf2v4mijlmkh72lmh9za6kz7hb3hp1nvi";
in
stdenv.mkDerivation rec {
name = "fio-${version}";
src = fetchFromGitHub {
owner = "axboe";
repo = "fio";
rev = "fio-${version}";
inherit sha256;
};
buildInputs = [ libaio python zlib ];
enableParallelBuilding = true;
postPatch = ''
substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
'';
meta = with stdenv.lib; {
homepage = "http://git.kernel.dk/?p=fio.git;a=summary";
description = "Flexible IO Tester - an IO benchmark tool";
license = licenses.gpl2;
platforms = platforms.unix;
};
}