fio: 3.7 -> 3.8

This commit is contained in:
Peter Hoeg 2018-08-08 19:10:20 +08:00
parent d0f6e59c74
commit 83a096d042

View file

@ -1,23 +1,23 @@
{ stdenv, fetchFromGitHub, libaio, python, zlib }:
let
version = "3.7";
sha256 = "1m2slyxhzyznq283m6ljjgjg38i0hxg537bwhfs12qskv00c4vsk";
in
{ stdenv, fetchFromGitHub, makeWrapper
, libaio, python, zlib
, withGnuplot ? false, gnuplot ? null }:
stdenv.mkDerivation rec {
name = "fio-${version}";
version = "3.8";
src = fetchFromGitHub {
owner = "axboe";
repo = "fio";
rev = "fio-${version}";
inherit sha256;
owner = "axboe";
repo = "fio";
rev = "fio-${version}";
sha256 = "1krifr4ms7x229a3p088zl5rpdrfwz6bw4c2lrz3hksignjxaw91";
};
buildInputs = [ python zlib ]
++ stdenv.lib.optional (!stdenv.isDarwin) libaio;
nativeBuildInputs = [ makeWrapper ];
enableParallelBuilding = true;
postPatch = ''
@ -27,9 +27,14 @@ stdenv.mkDerivation rec {
substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio
'';
postInstall = stdenv.lib.optionalString withGnuplot ''
wrapProgram $out/bin/fio2gnuplot \
--prefix PATH : ${stdenv.lib.makeBinPath [ gnuplot ]}
'';
meta = with stdenv.lib; {
homepage = "http://git.kernel.dk/?p=fio.git;a=summary;";
description = "Flexible IO Tester - an IO benchmark tool";
homepage = "http://git.kernel.dk/?p=fio.git;a=summary;";
license = licenses.gpl2;
platforms = platforms.unix;
};