about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorLeo Gaskin <leo.gaskin@le0.gs>2021-05-21 19:20:17 +0200
committerLeo Gaskin <leo.gaskin@le0.gs>2021-05-21 19:20:17 +0200
commit4272dc1cfd76382a8f990ba80e3e2b8ab01841e6 (patch)
tree6f4b8dbfc55ffcdeb08502343d552b36d09261fd /pkgs/tools/system
parentae0c2693863dee99ba23ba707e8aca04ac37f716 (diff)
downloadnixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar.gz
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar.bz2
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar.lz
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar.xz
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.tar.zst
nixlib-4272dc1cfd76382a8f990ba80e3e2b8ab01841e6.zip
netdata: make cloud support optional and disable on darwin
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/netdata/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix
index 3d09a5b1add1..e00c2bfafb31 100644
--- a/pkgs/tools/system/netdata/default.nix
+++ b/pkgs/tools/system/netdata/default.nix
@@ -1,11 +1,12 @@
 { lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config
 , CoreFoundation, IOKit, libossp_uuid
 , nixosTests
-, curl, libcap, libuuid, lm_sensors, zlib, json_c
+, curl, libcap, libuuid, lm_sensors, zlib
 , withCups ? false, cups
 , withDBengine ? true, libuv, lz4, judy
 , withIpmi ? (!stdenv.isDarwin), freeipmi
 , withNetfilter ? (!stdenv.isDarwin), libmnl, libnetfilter_acct
+, withCloud ? (!stdenv.isDarwin), json_c
 , withSsl ? true, openssl
 , withDebug ? false
 }:
@@ -27,13 +28,14 @@ in stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ autoreconfHook pkg-config ];
-  buildInputs = [ curl.dev zlib.dev json_c ]
+  buildInputs = [ curl.dev zlib.dev ]
     ++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ]
     ++ optionals (!stdenv.isDarwin) [ libcap.dev libuuid.dev ]
     ++ optionals withCups [ cups ]
     ++ optionals withDBengine [ libuv lz4.dev judy ]
     ++ optionals withIpmi [ freeipmi ]
     ++ optionals withNetfilter [ libmnl libnetfilter_acct ]
+    ++ optionals withCloud [ json_c ]
     ++ optionals withSsl [ openssl.dev ];
 
   patches = [
@@ -71,6 +73,7 @@ in stdenv.mkDerivation rec {
   configureFlags = [
     "--localstatedir=/var"
     "--sysconfdir=/etc"
+  ] ++ optionals withCloud [
     "--enable-cloud"
     "--with-aclk-ng"
   ];