2020-03-27 07:18:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-09-08 13:30:20 +00:00
|
|
|
|
2020-03-27 07:18:52 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "telegraf";
|
2020-08-11 15:11:29 +00:00
|
|
|
version = "1.15.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";
|
2020-03-27 07:18:52 +00:00
|
|
|
rev = "v${version}";
|
2020-08-11 15:11:29 +00:00
|
|
|
sha256 = "045wjpq29dr0s48ns3a4p8pw1j0ssfcw6m91iim4pkrppj7bm2di";
|
2016-09-08 13:30:20 +00:00
|
|
|
};
|
|
|
|
|
2020-07-31 12:27:51 +00:00
|
|
|
runVend = true;
|
|
|
|
vendorSha256 = "0c2sayg49b2rq3fnrbf741b6zy8byhwxlnxkhf5160gzqn6jy2rw";
|
2020-03-27 07:18:52 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
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
|
|
|
'' ];
|
|
|
|
|
2020-01-28 14:08:38 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) telegraf; };
|
|
|
|
|
2016-09-08 13:30:20 +00: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 13:30:20 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|