fio: 3.7 -> 3.8

This commit is contained in:
Peter Hoeg
2018-08-08 19:10:29 +08:00
parent d0f6e59c74
commit 83a096d042
+16 -11
View File
@@ -1,23 +1,23 @@
{ stdenv, fetchFromGitHub, libaio, python, zlib }: { stdenv, fetchFromGitHub, makeWrapper
, libaio, python, zlib
let , withGnuplot ? false, gnuplot ? null }:
version = "3.7";
sha256 = "1m2slyxhzyznq283m6ljjgjg38i0hxg537bwhfs12qskv00c4vsk";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fio-${version}"; name = "fio-${version}";
version = "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "axboe"; owner = "axboe";
repo = "fio"; repo = "fio";
rev = "fio-${version}"; rev = "fio-${version}";
inherit sha256; sha256 = "1krifr4ms7x229a3p088zl5rpdrfwz6bw4c2lrz3hksignjxaw91";
}; };
buildInputs = [ python zlib ] buildInputs = [ python zlib ]
++ stdenv.lib.optional (!stdenv.isDarwin) libaio; ++ stdenv.lib.optional (!stdenv.isDarwin) libaio;
nativeBuildInputs = [ makeWrapper ];
enableParallelBuilding = true; enableParallelBuilding = true;
postPatch = '' postPatch = ''
@@ -27,9 +27,14 @@ stdenv.mkDerivation rec {
substituteInPlace tools/plot/fio2gnuplot --replace /usr/share/fio $out/share/fio 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; { meta = with stdenv.lib; {
homepage = "http://git.kernel.dk/?p=fio.git;a=summary;";
description = "Flexible IO Tester - an IO benchmark tool"; description = "Flexible IO Tester - an IO benchmark tool";
homepage = "http://git.kernel.dk/?p=fio.git;a=summary;";
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.unix; platforms = platforms.unix;
}; };