2016-09-08 15:30:20 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "telegraf";
|
2019-04-16 09:11:30 +02:00
|
|
|
version = "1.10.2";
|
2016-09-08 15:30:20 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
2019-01-21 12:28:32 +01:00
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
2016-09-08 15:30:20 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2019-04-16 09:11:30 +02:00
|
|
|
sha256 = "0g27yczb49xf8nbhkzx7lv8378613afq9qx1gr5yhlpfrl4sgb69";
|
2016-09-08 15:30:20 +02:00
|
|
|
};
|
|
|
|
|
2017-10-01 11:19:39 +02:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'' ];
|
|
|
|
|
2018-05-22 22:42:02 +02:00
|
|
|
goDeps = ./. + "/deps-${version}.nix";
|
2016-09-08 15:30:20 +02: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/;
|
|
|
|
maintainers = with maintainers; [ mic92 roblabla ];
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2016-09-08 15:30:20 +02:00
|
|
|
};
|
|
|
|
}
|