2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "telegraf";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.17.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-R0RYiVVS1ce2xabPBTEmOxBNlknP4iXkbVy412whrFw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
vendorSha256 = "sha256-3cELah9i2rY563QQOYt7ke0HEUR1By74vTgl+UbOHwc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
|
|
-w -s -X main.version=${version}
|
|
|
|
'' ];
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) telegraf; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "The plugin-driven server agent for collecting & reporting metrics";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ mic92 roblabla timstott foxit64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|