about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2019-07-06 13:40:38 +0200
committerVladimír Čunát <v@cunat.cz>2019-07-06 13:44:40 +0200
commit0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4 (patch)
tree146620da711f1221bbc226b5ffa36407b50a3fc3 /pkgs/tools/system
parent8e97d0be6bf0b381935e3b8429430d645dc2e226 (diff)
parentd567c486ca5ac5f0c83bb0264c325204a479a5bb (diff)
downloadnixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar.gz
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar.bz2
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar.lz
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar.xz
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.tar.zst
nixlib-0746c4dbb46a49f002dbe0d854a0bf2ec8f126e4.zip
Merge branch 'master' into staging-next
There are several thousand rebuilds from master already.
Hydra nixpkgs: ?compare=1528940
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/di/default.nix4
-rw-r--r--pkgs/tools/system/netdata/default.nix37
2 files changed, 32 insertions, 9 deletions
diff --git a/pkgs/tools/system/di/default.nix b/pkgs/tools/system/di/default.nix
index 135436e8f112..7d366dc9bd7f 100644
--- a/pkgs/tools/system/di/default.nix
+++ b/pkgs/tools/system/di/default.nix
@@ -2,11 +2,11 @@
 
 stdenv.mkDerivation rec {
   name = "di-${version}";
-  version = "4.47";
+  version = "4.47.1";
 
   src = fetchurl {
     url = "http://gentoo.com/di/${name}.tar.gz";
-    sha256 = "0zlapxlzjizwzwa8xwrwibhcbkh0wx7n74gvjpp6wlwq7cgiq0xm";
+    sha256 = "1bdbl9k3gqf4h6g21difqc0w17pjid6r587y19wi37vx36aava7f";
   };
 
   makeFlags = [ "INSTALL_DIR=$(out)" ];
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix
index f0082f4a4411..a749595b4154 100644
--- a/pkgs/tools/system/netdata/default.nix
+++ b/pkgs/tools/system/netdata/default.nix
@@ -1,6 +1,17 @@
-{ stdenv, fetchurl, autoreconfHook, pkgconfig, zlib, libuuid, libossp_uuid, CoreFoundation, IOKit, lm_sensors }:
+{ stdenv, fetchurl, autoreconfHook, pkgconfig
+, CoreFoundation, IOKit, libossp_uuid
+, curl, libcap,  libuuid, lm_sensors, zlib
+, withCups ? false, cups
+, withDBengine ? true, libuv, lz4, judy
+, withIpmi ? (!stdenv.isDarwin), freeipmi
+, withNetfilter ? (!stdenv.isDarwin), libmnl, libnetfilter_acct
+, withSsl ? true, openssl
+, withDebug ? false
+}:
 
-stdenv.mkDerivation rec{
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
   version = "1.15.0";
   name = "netdata-${version}";
 
@@ -10,20 +21,32 @@ stdenv.mkDerivation rec{
   };
 
   nativeBuildInputs = [ autoreconfHook pkgconfig ];
-  buildInputs = [ zlib ]
-    ++ (if stdenv.isDarwin then [ libossp_uuid CoreFoundation IOKit ] else [ libuuid ]);
+  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 withSsl [ openssl.dev ];
 
   patches = [
     ./no-files-in-etc-and-var.patch
   ];
 
-  postInstall = stdenv.lib.optionalString (!stdenv.isDarwin) ''
+  NIX_CFLAGS_COMPILE = optional withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1";
+
+  postInstall = optionalString (!stdenv.isDarwin) ''
     # rename this plugin so netdata will look for setuid wrapper
     mv $out/libexec/netdata/plugins.d/apps.plugin \
        $out/libexec/netdata/plugins.d/apps.plugin.org
+    ${optionalString withIpmi ''
+      mv $out/libexec/netdata/plugins.d/freeipmi.plugin \
+         $out/libexec/netdata/plugins.d/freeipmi.plugin.org
+    ''}
   '';
 
-  preConfigure = ''
+  preConfigure =  optionalString (!stdenv.isDarwin) ''
     substituteInPlace collectors/python.d.plugin/python_modules/third_party/lm_sensors.py \
       --replace 'ctypes.util.find_library("sensors")' '"${lm_sensors.out}/lib/libsensors${stdenv.hostPlatform.extensions.sharedLibrary}"'
   '';
@@ -37,7 +60,7 @@ stdenv.mkDerivation rec{
     rm -r $out/sbin
   '';
 
-  meta = with stdenv.lib; {
+  meta = {
     description = "Real-time performance monitoring tool";
     homepage = https://my-netdata.io/;
     license = licenses.gpl3;