@@ -1,11 +1,12 @@
11{ lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config
22, CoreFoundation, IOKit, libossp_uuid
3−, curl, libcap, libuuid, lm_sensors, zlib
43, nixosTests
4+, curl, libcap, libuuid, lm_sensors, zlib
55, withCups ? false, cups
66, withDBengine ? true, libuv, lz4, judy
77, withIpmi ? (!stdenv.isDarwin), freeipmi
88, withNetfilter ? (!stdenv.isDarwin), libmnl, libnetfilter_acct
9+, withCloud ? (!stdenv.isDarwin), json_c
910, withSsl ? true, openssl
1011, withDebug ? false
1112}:
@@ -22,7 +23,8 @@ in stdenv.mkDerivation rec {
2223 owner = "netdata";
2324 repo = "netdata";
2425 rev = "v${version}";
25− sha256 = "0x6vg2z7x83b127flbfqkgpakd5md7n2w39dvs8s16facdy2lvry";
26+ sha256 = "0735cxmljrp8zlkcq7hcxizy4j4xiv7vf782zkz5chn06n38mcik";
27+ fetchSubmodules = true;
2628 };
2729
2830 nativeBuildInputs = [ autoreconfHook pkg-config ];
@@ -33,6 +35,7 @@ in stdenv.mkDerivation rec {
3335 ++ optionals withDBengine [ libuv lz4.dev judy ]
3436 ++ optionals withIpmi [ freeipmi ]
3537 ++ optionals withNetfilter [ libmnl libnetfilter_acct ]
38+ ++ optionals withCloud [ json_c ]
3639 ++ optionals withSsl [ openssl.dev ];
3740
3841 patches = [
@@ -70,6 +73,9 @@ in stdenv.mkDerivation rec {
7073 configureFlags = [
7174 "--localstatedir=/var"
7275 "--sysconfdir=/etc"
76+ ] ++ optionals withCloud [
77+ "--enable-cloud"
78+ "--with-aclk-ng"
7379 ];
7480
7581 postFixup = ''