2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2011-06-07 16:56:50 +01:00
|
|
|
|
2015-04-18 18:45:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01: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 16:56:50 +01: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 16:56:50 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-04-18 18:45:01 +01:00
|
|
|
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 18:45:01 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/koct9i/ioping";
|
2011-06-07 16:56:50 +01:00
|
|
|
};
|
2015-04-18 18:45:01 +01:00
|
|
|
}
|