summary refs log tree commit diff
path: root/pkgs/tools/system/collectd
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-08-11 09:47:27 +0800
committerPeter Hoeg <peter@hoeg.com>2017-08-11 09:47:27 +0800
commit719aa35c0cbd0cfaa4856b428f1d0717cff024dc (patch)
tree8840d746f1549b23c3493c58476448ff86c4ce15 /pkgs/tools/system/collectd
parenta7c8f5e419ba07711c132bf81baaab0e74862cce (diff)
downloadnixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar.gz
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar.bz2
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar.lz
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar.xz
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.tar.zst
nixpkgs-719aa35c0cbd0cfaa4856b428f1d0717cff024dc.zip
collectd-data: init at 5.7.0 - contains just data files from collectd
Diffstat (limited to 'pkgs/tools/system/collectd')
-rw-r--r--pkgs/tools/system/collectd/data.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/system/collectd/data.nix b/pkgs/tools/system/collectd/data.nix
new file mode 100644
index 00000000000..cb8c4cc7d02
--- /dev/null
+++ b/pkgs/tools/system/collectd/data.nix
@@ -0,0 +1,14 @@
+{ stdenv, collectd }:
+
+stdenv.mkDerivation rec {
+  inherit (collectd) meta version;
+
+  name = "collectd-data-${version}";
+
+  phases = [ "installPhase" ];
+
+  installPhase = ''
+    mkdir -p $out/share/collectd
+    cp ${collectd}/share/collectd/*.{db,conf} $out/share/collectd/
+  '';
+}