diff options
author | Sheena Artrip <sheena.artrip@gmail.com> | 2016-03-17 23:25:27 -0400 |
---|---|---|
committer | Sheena Artrip <sheena.artrip@gmail.com> | 2016-03-17 23:26:09 -0400 |
commit | 0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf (patch) | |
tree | 27651e78b5df85a027d809522ede40b04d49c348 /pkgs/development/libraries/libcollectdclient | |
parent | dd177e62e36a2578d6f49db5644da472429cc8d6 (diff) | |
download | nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar.gz nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar.bz2 nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar.lz nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar.xz nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.tar.zst nixlib-0bffa2f1a9c7681c14c5855e8ab6a03a7f462fbf.zip |
libcollectdclient: make client derive from collectd package
collectd: split version and name libcollectdclient: make client derive from collectd package
Diffstat (limited to 'pkgs/development/libraries/libcollectdclient')
-rw-r--r-- | pkgs/development/libraries/libcollectdclient/default.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/pkgs/development/libraries/libcollectdclient/default.nix b/pkgs/development/libraries/libcollectdclient/default.nix index f06fcec84126..f6d9d7ca69b8 100644 --- a/pkgs/development/libraries/libcollectdclient/default.nix +++ b/pkgs/development/libraries/libcollectdclient/default.nix @@ -1,14 +1,9 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, collectd }: +with stdenv.lib; -stdenv.mkDerivation rec { - version = "5.5.0"; - name = "libcollectdclient-${version}"; - tarname = "collectd-${version}"; - - src = fetchurl { - url = "http://collectd.org/files/${tarname}.tar.bz2"; - sha256 = "847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88"; - }; +overrideDerivation collectd (oldAttrs: { + name = "libcollectdclient-${collectd.version}"; + buildInputs = [ ]; configureFlags = [ "--without-daemon" @@ -18,8 +13,7 @@ stdenv.mkDerivation rec { "-C src/libcollectdclient/" ]; - NIX_CFLAGS_COMPILE = "-Wno-error=cpp"; - +}) // { meta = with stdenv.lib; { description = "C Library for collectd, a daemon which collects system performance statistics periodically"; homepage = http://collectd.org; |