2016-09-08 14:30:20 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "telegraf-${version}";
|
2018-06-21 11:46:01 +01:00
|
|
|
version = "1.7.0";
|
2016-09-08 14:30:20 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
|
|
|
rev = "${version}";
|
2018-06-21 11:46:01 +01:00
|
|
|
sha256 = "1jinvncbn1srfmclhys6khvaczawy243vgmj2gsgm9szrnrf7klv";
|
2016-09-08 14:30:20 +01:00
|
|
|
};
|
|
|
|
|
2017-10-01 10:19:39 +01:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'' ];
|
|
|
|
|
2018-05-22 21:42:02 +01:00
|
|
|
goDeps = ./. + "/deps-${version}.nix";
|
2016-09-08 14:30:20 +01: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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|