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";
|
2020-11-15 13:44:38 +00:00
|
|
|
version = "1.16.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
|
|
|
rev = "v${version}";
|
2020-11-15 13:44:38 +00:00
|
|
|
sha256 = "sha256-XdlXUwGn2isGn7SqCGaAjntposBEd6WbbdfN6dEycDI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-15 13:44:38 +00:00
|
|
|
vendorSha256 = "02fqx817w6f9grfc69ri06a6qygbr5chan6w9waq2y0mxvmypz28";
|
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/";
|
|
|
|
maintainers = with maintainers; [ mic92 roblabla foxit64 ];
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|