2020-03-20 02:01:22 -07:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch }:
|
2011-06-07 08:56:50 -07:00
|
|
|
|
2015-04-18 10:45:01 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ioping";
|
2020-02-06 00:47:33 -08:00
|
|
|
version = "1.2";
|
2017-02-28 18:18:28 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koct9i";
|
|
|
|
repo = "ioping";
|
|
|
|
rev = "v${version}";
|
2020-02-06 00:47:33 -08:00
|
|
|
sha256 = "10bv36bqga8sdifxzywzzpjil7vmy62psirz7jbvlsq1bw71aiid";
|
2011-06-07 08:56:50 -07:00
|
|
|
};
|
|
|
|
|
2020-03-20 02:01:22 -07:00
|
|
|
patches = [
|
|
|
|
# add netdata support: https://github.com/koct9i/ioping/pull/41
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/koct9i/ioping/commit/e7b818457ddb952cbcc13ae732ba0328f6eb73b3.patch";
|
|
|
|
sha256 = "122ivp4rqsnjszjfn33z8li6glcjhy7689bgipi8cgs5q55j99gf";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-10-27 06:03:25 -07:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2011-06-07 08:56:50 -07:00
|
|
|
|
2015-04-18 10:45:01 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Disk I/O latency measuring tool";
|
2019-12-26 13:28:10 -08:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-17 12:29:29 -08:00
|
|
|
platforms = platforms.unix;
|
2015-04-18 10:45:01 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/koct9i/ioping";
|
2011-06-07 08:56:50 -07:00
|
|
|
};
|
2015-04-18 10:45:01 -07:00
|
|
|
}
|