Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Frederik Rietdijk
2017-12-30 17:04:54 +01:00
73 changed files with 1947 additions and 571 deletions
+14 -12
View File
@@ -25,7 +25,7 @@
, protobufc ? null
, python ? null
, rabbitmq-c ? null
, riemann ? null
, riemann_c_client ? null
, rrdtool ? null
, udev ? null
, varnish ? null
@@ -33,18 +33,21 @@
, net_snmp ? null
, hiredis ? null
, libmnl ? null
, mosquitto ? null
, rdkafka ? null
, mongoc ? null
}:
stdenv.mkDerivation rec {
version = "5.7.2";
version = "5.8.0";
name = "collectd-${version}";
src = fetchurl {
url = "http://collectd.org/files/${name}.tar.bz2";
sha256 = "14p5cc3ys3qfg71xzxfvmxdmz5l4brpbhlmw1fwdda392lia084x";
sha256 = "1j8mxgfq8039js2bscphd6cnriy35hk4jrxfjz5k6mghpdvg8vxh";
};
# on 5.7.2: lvm2app.h:21:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp]
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
# on 5.8.0: lvm2app.h:21:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp]
NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
@@ -52,8 +55,9 @@ stdenv.mkDerivation rec {
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
libxml2 postgresql protobufc rrdtool
varnish yajl jdk libtool python hiredis libmicrohttpd
] ++ stdenv.lib.optional (mysql != null) mysql.connector-c
++ stdenv.lib.optionals stdenv.isLinux [
riemann_c_client mosquitto rdkafka mongoc
] ++ stdenv.lib.optionals (mysql != null) [ mysql.connector-c
] ++ stdenv.lib.optionals stdenv.isLinux [
iptables libatasmart libcredis libmodbus libsigrok
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
] ++ stdenv.lib.optionals stdenv.isDarwin [
@@ -61,11 +65,7 @@ stdenv.mkDerivation rec {
darwin.apple_sdk.frameworks.ApplicationServices
];
# for some reason libsigrok isn't auto-detected
configureFlags =
[ "--localstatedir=/var" ] ++
stdenv.lib.optional (stdenv.isLinux && libsigrok != null) "--with-libsigrok" ++
stdenv.lib.optional (python != null) "--with-python=${python}/bin/python";
configureFlags = [ "--localstatedir=/var" ];
# do not create directories in /var during installPhase
postConfigure = ''
@@ -78,6 +78,8 @@ stdenv.mkDerivation rec {
fi
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Daemon which collects system performance statistics periodically";
homepage = https://collectd.org;