2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, collectd }:
|
2016-03-17 20:25:27 -07:00
|
|
|
with stdenv.lib;
|
2016-03-16 20:57:32 -07:00
|
|
|
|
2018-06-08 17:10:22 -07:00
|
|
|
collectd.overrideAttrs (oldAttrs: {
|
2016-03-17 20:25:27 -07:00
|
|
|
name = "libcollectdclient-${collectd.version}";
|
|
|
|
buildInputs = [ ];
|
2016-03-16 20:57:32 -07:00
|
|
|
|
2018-12-21 04:40:40 -08:00
|
|
|
configureFlags = (oldAttrs.configureFlags or []) ++ [
|
2017-12-20 14:37:37 -08:00
|
|
|
"--disable-daemon"
|
|
|
|
"--disable-all-plugins"
|
2016-03-16 20:57:32 -07:00
|
|
|
];
|
|
|
|
|
2017-12-20 14:37:37 -08:00
|
|
|
postInstall = "rm -rf $out/{bin,etc,sbin,share}";
|
|
|
|
|
2016-03-16 20:57:32 -07: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-08 17:10:22 -07:00
|
|
|
})
|