about summary refs log tree commit diff
path: root/pkgs/tools/system/ioping/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-03-24 01:51:13 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-03-24 01:51:13 +0100
commitcbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4 (patch)
tree6534f00bf85774daac26bb0d592f370ee9fb59b7 /pkgs/tools/system/ioping/default.nix
parent9fd82b3e7e99678dab327332bcffec4aad01d22b (diff)
parent0bfd0187dafe3f597355e6be16b7b9a5f4b90376 (diff)
downloadnixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.gz
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.bz2
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.lz
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.xz
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.tar.zst
nixlib-cbd504c0ae8eb3be7cbf0e28eee3d85c9d6b7ce4.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/tools/system/ioping/default.nix')
-rw-r--r--pkgs/tools/system/ioping/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/system/ioping/default.nix b/pkgs/tools/system/ioping/default.nix
index 6ffaf23280f4..6acd41046ceb 100644
--- a/pkgs/tools/system/ioping/default.nix
+++ b/pkgs/tools/system/ioping/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub }:
+{ stdenv, fetchFromGitHub, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "ioping";
@@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
     sha256 = "10bv36bqga8sdifxzywzzpjil7vmy62psirz7jbvlsq1bw71aiid";
   };
 
+  patches = [
+    # add netdata support: https://github.com/koct9i/ioping/pull/41
+    (fetchpatch {
+      url = "https://github.com/koct9i/ioping/commit/e7b818457ddb952cbcc13ae732ba0328f6eb73b3.patch";
+      sha256 = "122ivp4rqsnjszjfn33z8li6glcjhy7689bgipi8cgs5q55j99gf";
+    })
+  ];
+
   makeFlags = [ "PREFIX=$(out)" ];
 
   meta = with stdenv.lib; {