2016-09-08 15:30:20 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "telegraf-${version}";
|
2017-11-09 10:24:01 +01:00
|
|
|
version = "1.4.4";
|
2016-09-08 15:30:20 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
|
|
|
rev = "${version}";
|
2017-11-09 10:24:01 +01:00
|
|
|
sha256 = "1hyjbx0hwyh39dgij86xlznaqnzh8m0yk96phqgxs328dlcxfl07";
|
2016-09-08 15:30:20 +02:00
|
|
|
};
|
|
|
|
|
2017-10-01 11:19:39 +02:00
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
|
|
-X main.version=${version}
|
|
|
|
'' ];
|
|
|
|
|
2016-09-16 01:24:11 +02:00
|
|
|
goDeps = ./. + builtins.toPath "/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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|