@@ -1,14 +1,9 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, collectd }:
2+with stdenv.lib;
23
3−stdenv.mkDerivation rec {
4− version = "5.5.0";
5− name = "libcollectdclient-${version}";
6− tarname = "collectd-${version}";
7−
8− src = fetchurl {
9− url = "http://collectd.org/files/${tarname}.tar.bz2";
10− sha256 = "847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88";
11− };
4+overrideDerivation collectd (oldAttrs: {
5+ name = "libcollectdclient-${collectd.version}";
6+ buildInputs = [ ];
127
138 configureFlags = [
149 "--without-daemon"
@@ -18,8 +13,7 @@ stdenv.mkDerivation rec {
1813 "-C src/libcollectdclient/"
1914 ];
2015
21− NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
22−
16+}) // {
2317 meta = with stdenv.lib; {
2418 description = "C Library for collectd, a daemon which collects system performance statistics periodically";
2519 homepage = http://collectd.org;