1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "ioping";
10 version = "1.2";
11
12 src = fetchFromGitHub {
13 owner = "koct9i";
14 repo = "ioping";
15 rev = "v${version}";
16 sha256 = "10bv36bqga8sdifxzywzzpjil7vmy62psirz7jbvlsq1bw71aiid";
17 };
18
19 patches = [
20 # add netdata support: https://github.com/koct9i/ioping/pull/41
21 (fetchpatch {
22 url = "https://github.com/koct9i/ioping/commit/e7b818457ddb952cbcc13ae732ba0328f6eb73b3.patch";
23 sha256 = "122ivp4rqsnjszjfn33z8li6glcjhy7689bgipi8cgs5q55j99gf";
24 })
25 ];
26
27 makeFlags = [ "PREFIX=$(out)" ];
28
29 meta = with lib; {
30 description = "Disk I/O latency measuring tool";
31 maintainers = with maintainers; [ raskin ];
32 platforms = platforms.unix;
33 license = licenses.gpl3Plus;
34 homepage = "https://github.com/koct9i/ioping";
35 mainProgram = "ioping";
36 };
37}