2020-03-27 07:18:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-09-08 14:30:20 +01:00
|
|
|
|
2020-03-27 07:18:52 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "telegraf";
|
2020-04-28 07:40:01 +01:00
|
|
|
version = "1.14.1";
|
2016-09-08 14:30:20 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
2019-01-21 11:28:32 +00:00
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
2016-09-08 14:30:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
2020-03-27 07:18:52 +00:00
|
|
|
rev = "v${version}";
|
2020-04-28 07:40:01 +01:00
|
|
|
sha256 = "17lzz0f9vzyfwr3kgwg6i6361hqzq54jnaaw9rdc132xppdx03nr";
|
2016-09-08 14:30:20 +01:00
|
|
|
};
|
|
|
|
|
2020-03-27 07:18:52 +00:00
|
|
|
modSha256 = "1q7il1x1pfyz15z23cs0kk7zyacn6b3y28b1q52bqi30l1x8bdbp";
|
|
|
|
|
2017-10-01 10:19:39 +01:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
2019-09-18 03:16:09 +01:00
|
|
|
-w -s -X main.version=${version}
|
2017-10-01 10:19:39 +01:00
|
|
|
'' ];
|
|
|
|
|
2020-01-28 14:08:38 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) telegraf; };
|
|
|
|
|
2016-09-08 14:30:20 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The plugin-driven server agent for collecting & reporting metrics.";
|
|
|
|
license = licenses.mit;
|
2020-03-27 07:18:52 +00:00
|
|
|
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 14:30:20 +01:00
|
|
|
};
|
|
|
|
}
|