2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, collectd }:
|
2016-03-18 04:25:27 +01:00
|
|
|
with stdenv.lib;
|
2016-03-17 04:57:32 +01:00
|
|
|
|
2018-06-09 02:10:22 +02:00
|
|
|
collectd.overrideAttrs (oldAttrs: {
|
2016-03-18 04:25:27 +01:00
|
|
|
name = "libcollectdclient-${collectd.version}";
|
|
|
|
buildInputs = [ ];
|
2016-03-17 04:57:32 +01:00
|
|
|
|
2017-12-20 23:37:37 +01:00
|
|
|
NIX_CFLAGS_COMPILE = oldAttrs.NIX_CFLAGS_COMPILE ++ [
|
|
|
|
"-Wno-error=unused-function"
|
2016-03-17 04:57:32 +01:00
|
|
|
];
|
|
|
|
|
2017-12-20 23:37:37 +01:00
|
|
|
configureFlags = oldAttrs.configureFlags ++ [
|
|
|
|
"--disable-daemon"
|
|
|
|
"--disable-all-plugins"
|
2016-03-17 04:57:32 +01:00
|
|
|
];
|
|
|
|
|
2017-12-20 23:37:37 +01:00
|
|
|
postInstall = "rm -rf $out/{bin,etc,sbin,share}";
|
|
|
|
|
2016-03-17 04:57:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C Library for collectd, a daemon which collects system performance statistics periodically";
|
|
|
|
homepage = http://collectd.org;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux; # TODO: collectd may be linux but the C client may be more portable?
|
|
|
|
maintainers = [ maintainers.sheenobu maintainers.bjornfor ];
|
|
|
|
};
|
2018-06-09 02:10:22 +02:00
|
|
|
})
|