Merge pull request #28127 from peterhoeg/f/collectd

influxdb (on nixos): reduce closure size by 99.99% (and a bit)
This commit is contained in:
Peter Hoeg
2017-08-12 00:01:46 +08:00
committed by GitHub
3 changed files with 17 additions and 2 deletions
+14
View File
@@ -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/
'';
}