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