8767598d4d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/fio/versions. These checks were done: - built on NixOS - /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio passed the binary check. - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-genzipf had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-btrace2fio had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-dedupe had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-verify-state had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_generate_plots had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio2gnuplot had a zero exit code or showed the expected version - /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/genfio passed the binary check. - /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser.py passed the binary check. - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser_hist.py had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_jsonplus_clat2csv had a zero exit code or showed the expected version - 3 of 11 passed binary check by having a zero exit code. - 1 of 11 passed binary check by having the new version present in output. - found 3.7 with grep in /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7 - directory tree listing: https://gist.github.com/bd1f8351a206f7ab3391b9aaf656b1cf - du listing: https://gist.github.com/f8ccaaf11e78def220b20bc5d0fcfa4a
36 lines
950 B
Nix
36 lines
950 B
Nix
{ stdenv, fetchFromGitHub, libaio, python, zlib }:
|
|
|
|
let
|
|
version = "3.7";
|
|
sha256 = "1m2slyxhzyznq283m6ljjgjg38i0hxg537bwhfs12qskv00c4vsk";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fio-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axboe";
|
|
repo = "fio";
|
|
rev = "fio-${version}";
|
|
inherit sha256;
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|