nixpkgs/pkgs/tools/system/fio/default.nix

37 lines
950 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, libaio, python, zlib }:
2015-04-23 06:10:54 -07:00
let
fio: 3.6 -> 3.7 (#41564) 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
2018-06-08 10:17:43 -07:00
version = "3.7";
sha256 = "1m2slyxhzyznq283m6ljjgjg38i0hxg537bwhfs12qskv00c4vsk";
in
stdenv.mkDerivation rec {
2015-04-23 06:10:54 -07:00
name = "fio-${version}";
src = fetchFromGitHub {
owner = "axboe";
repo = "fio";
rev = "fio-${version}";
inherit sha256;
};
2015-04-23 06:10:54 -07:00
buildInputs = [ python zlib ]
++ stdenv.lib.optional (!stdenv.isDarwin) libaio;
2015-04-23 06:10:54 -07:00
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
2015-04-23 06:10:54 -07:00
'';
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;
};
}