about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2021-05-05 20:45:22 +0300
committerIzorkin <izorkin@elven.pw>2021-05-05 20:48:58 +0300
commit6b2462aec9ac7a17ba553aa21f868eecf6e0e615 (patch)
tree2fd3d25c8767cff6b32c9b77ff7926d5d7718eeb /pkgs/tools/system
parent53651179b922485330a96a13cacfe7d08ec0938b (diff)
downloadnixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar.gz
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar.bz2
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar.lz
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar.xz
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.tar.zst
nixlib-6b2462aec9ac7a17ba553aa21f868eecf6e0e615.zip
netdata: fix network interfaces detection when using virsh
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/netdata/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix
index 30f24e71c239..c96f92bedfef 100644
--- a/pkgs/tools/system/netdata/default.nix
+++ b/pkgs/tools/system/netdata/default.nix
@@ -8,6 +8,7 @@
 , withNetfilter ? (!stdenv.isDarwin), libmnl, libnetfilter_acct
 , withSsl ? true, openssl
 , withDebug ? false
+, fetchpatch
 }:
 
 with lib;
@@ -39,6 +40,11 @@ in stdenv.mkDerivation rec {
     # required to prevent plugins from relying on /etc
     # and /var
     ./no-files-in-etc-and-var.patch
+    # cgroups: fix network interfaces detection when using virsh
+    (fetchpatch {
+      url = "https://patch-diff.githubusercontent.com/raw/netdata/netdata/pull/11096.patch";
+      sha256 = "0f2rd7kgbwbyq9wyn085d213ifvivnpl3qlx1gjrg42rkbi4n8jj";
+    })
   ];
 
   NIX_CFLAGS_COMPILE = optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1";