diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libcollectdclient')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libcollectdclient/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libcollectdclient/default.nix b/nixpkgs/pkgs/development/libraries/libcollectdclient/default.nix new file mode 100644 index 000000000000..0bf654ee963c --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libcollectdclient/default.nix @@ -0,0 +1,22 @@ +{ lib, collectd }: +with lib; + +collectd.overrideAttrs (oldAttrs: { + name = "libcollectdclient-${collectd.version}"; + buildInputs = [ ]; + + configureFlags = (oldAttrs.configureFlags or []) ++ [ + "--disable-daemon" + "--disable-all-plugins" + ]; + + postInstall = "rm -rf $out/{bin,etc,sbin,share}"; + + meta = with 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 ]; + }; +}) |