2020-03-20 09:01:22 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch }:
|
2011-06-07 15:56:50 +00:00
|
|
|
|
2015-04-18 17:45:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ioping";
|
2020-02-06 08:47:33 +00:00
|
|
|
version = "1.2";
|
2017-03-01 02:18:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koct9i";
|
|
|
|
repo = "ioping";
|
|
|
|
rev = "v${version}";
|
2020-02-06 08:47:33 +00:00
|
|
|
sha256 = "10bv36bqga8sdifxzywzzpjil7vmy62psirz7jbvlsq1bw71aiid";
|
2011-06-07 15:56:50 +00:00
|
|
|
};
|
|
|
|
|
2020-03-20 09:01:22 +00: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 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2011-06-07 15:56:50 +00:00
|
|
|
|
2015-04-18 17:45:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Disk I/O latency measuring tool";
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.unix;
|
2015-04-18 17:45:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/koct9i/ioping";
|
2011-06-07 15:56:50 +00:00
|
|
|
};
|
2015-04-18 17:45:01 +00:00
|
|
|
}
|