Skip to content

Commit

Permalink
collectd: 5.7.2 -> 5.8.0
Browse files Browse the repository at this point in the history
This is #32811 without refactoring parts.

Closes #32811
  • Loading branch information
volth authored and orivej committed Dec 29, 2017
1 parent d329737 commit 4026ea9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
11 changes: 7 additions & 4 deletions pkgs/development/libraries/libcollectdclient/default.nix
Expand Up @@ -5,14 +5,17 @@ overrideDerivation collectd (oldAttrs: {
name = "libcollectdclient-${collectd.version}";
buildInputs = [ ];

configureFlags = [
"--without-daemon"
NIX_CFLAGS_COMPILE = oldAttrs.NIX_CFLAGS_COMPILE ++ [
"-Wno-error=unused-function"
];

makeFlags = [
"-C src/libcollectdclient/"
configureFlags = oldAttrs.configureFlags ++ [
"--disable-daemon"
"--disable-all-plugins"
];

postInstall = "rm -rf $out/{bin,etc,sbin,share}";

}) // {
meta = with stdenv.lib; {
description = "C Library for collectd, a daemon which collects system performance statistics periodically";
Expand Down
22 changes: 12 additions & 10 deletions pkgs/tools/system/collectd/default.nix
Expand Up @@ -25,33 +25,37 @@
, protobufc ? null
, python ? null
, rabbitmq-c ? null
, riemann ? null
, riemann_c_client ? null
, rrdtool ? null
, udev ? null
, varnish ? null
, yajl ? null
, 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 = [
curl libdbi libgcrypt libmemcached
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
libxml2 libmysql postgresql protobufc rrdtool
varnish yajl jdk libtool python hiredis libmicrohttpd
riemann_c_client mosquitto rdkafka mongoc
] ++ stdenv.lib.optionals stdenv.isLinux [
iptables libatasmart libcredis libmodbus libsigrok
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
Expand All @@ -60,11 +64,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 = ''
Expand All @@ -77,6 +77,8 @@ stdenv.mkDerivation rec {
fi
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Daemon which collects system performance statistics periodically";
homepage = https://collectd.org;
Expand Down

0 comments on commit 4026ea9

Please sign in to comment.