2016-09-08 13:30:20 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "telegraf";
|
2020-01-27 11:51:45 +00:00
|
|
|
version = "1.13.2";
|
2016-09-08 13:30:20 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
2019-01-21 11:28:32 +00:00
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
2016-09-08 13:30:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2020-01-27 11:51:45 +00:00
|
|
|
sha256 = "1vcnac1gj7ri1hdlkz5i6zpxiwljpfn1iag1zb3fymlw6c91b11p";
|
2016-09-08 13:30:20 +00:00
|
|
|
};
|
|
|
|
|
2017-10-01 09:19:39 +00:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
2019-09-18 02:16:09 +00:00
|
|
|
-w -s -X main.version=${version}
|
2017-10-01 09:19:39 +00:00
|
|
|
'' ];
|
|
|
|
|
2019-09-18 02:16:09 +00:00
|
|
|
goDeps = ./deps.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/;
|
2020-01-27 11:51:45 +00:00
|
|
|
maintainers = with maintainers; [ mic92 roblabla foxit64 ];
|
2016-09-08 13:30:20 +00:00
|
|
|
};
|
|
|
|
}
|