From e6df811980c529f2ee5239a848f01709851c0a08 Mon Sep 17 00:00:00 2001 From: squalus Date: Thu, 5 May 2022 07:38:28 -0700 Subject: [PATCH] netdata: support cross compile - libbpf support was disabled as a result of a configure-time file existence check. This check errored during cross compilation. Prevent the check from running during cross compilation by explicitly disabling libbpf support. - add protobuf to nativeBuildInputs to provide a protoc for buildPlatform - enable strictDeps --- pkgs/tools/system/netdata/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix index d1e3065efd2..c9e93d42738 100644 --- a/pkgs/tools/system/netdata/default.nix +++ b/pkgs/tools/system/netdata/default.nix @@ -27,7 +27,9 @@ in stdenv.mkDerivation rec { fetchSubmodules = true; }; - nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ]; + strictDeps = true; + + nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper protobuf ]; buildInputs = [ curl.dev zlib.dev protobuf ] ++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ] ++ optionals (!stdenv.isDarwin) [ libcap.dev libuuid.dev ] @@ -80,6 +82,7 @@ in stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" + "--disable-ebpf" ] ++ optionals withCloud [ "--enable-cloud" "--with-aclk-ng"