Skip to content

Commit

Permalink
Merge pull request #123709 from leotaku/netdata-cloud-v2
Browse files Browse the repository at this point in the history
netdata: Enable cloud support using ACLK-NG
  • Loading branch information
RaghavSood committed May 28, 2021
2 parents 6c0b85c + 4272dc1 commit 491a0bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/tools/system/netdata/default.nix
@@ -1,11 +1,12 @@
{ lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config
, CoreFoundation, IOKit, libossp_uuid
, curl, libcap, libuuid, lm_sensors, zlib
, nixosTests
, 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
}:
Expand All @@ -22,7 +23,8 @@ in stdenv.mkDerivation rec {
owner = "netdata";
repo = "netdata";
rev = "v${version}";
sha256 = "0x6vg2z7x83b127flbfqkgpakd5md7n2w39dvs8s16facdy2lvry";
sha256 = "0735cxmljrp8zlkcq7hcxizy4j4xiv7vf782zkz5chn06n38mcik";
fetchSubmodules = true;
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
Expand All @@ -33,6 +35,7 @@ in stdenv.mkDerivation rec {
++ optionals withDBengine [ libuv lz4.dev judy ]
++ optionals withIpmi [ freeipmi ]
++ optionals withNetfilter [ libmnl libnetfilter_acct ]
++ optionals withCloud [ json_c ]
++ optionals withSsl [ openssl.dev ];

patches = [
Expand Down Expand Up @@ -70,6 +73,9 @@ in stdenv.mkDerivation rec {
configureFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
] ++ optionals withCloud [
"--enable-cloud"
"--with-aclk-ng"
];

postFixup = ''
Expand Down

0 comments on commit 491a0bb

Please sign in to comment.