2016-09-08 13:30:20 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "telegraf-${version}";
|
2018-04-24 09:30:53 +00:00
|
|
|
version = "1.6.1";
|
2016-09-08 13:30:20 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
|
|
|
rev = "${version}";
|
2018-04-24 09:30:53 +00:00
|
|
|
sha256 = "0zc3bgs1ad392lqv72rkppxmk33b404b8jfx3wbzll7fklwxa8g2";
|
2016-09-08 13:30:20 +00:00
|
|
|
};
|
|
|
|
|
2017-10-01 09:19:39 +00:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'' ];
|
|
|
|
|
2016-09-15 23:24:11 +00:00
|
|
|
goDeps = ./. + builtins.toPath "/deps-${version}.nix";
|
2016-09-08 13:30:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The plugin-driven server agent for collecting & reporting metrics.";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://www.influxdata.com/time-series-platform/telegraf/;
|
|
|
|
maintainers = with maintainers; [ mic92 roblabla ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|