nixpkgs/pkgs/servers/monitoring/telegraf/default.nix

33 lines
784 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "telegraf";
2020-01-27 11:51:45 +00:00
version = "1.13.2";
goPackagePath = "github.com/influxdata/telegraf";
excludedPackages = "test";
2019-01-21 11:28:32 +00:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
2019-09-08 23:38:31 +00:00
rev = version;
2020-01-27 11:51:45 +00:00
sha256 = "1vcnac1gj7ri1hdlkz5i6zpxiwljpfn1iag1zb3fymlw6c91b11p";
};
2017-10-01 09:19:39 +00:00
buildFlagsArray = [ ''-ldflags=
2019-09-18 02:16:09 +00:00
-w -s -X main.version=${version}
2017-10-01 09:19:39 +00:00
'' ];
2019-09-18 02:16:09 +00:00
goDeps = ./deps.nix;
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/;
2020-01-27 11:51:45 +00:00
maintainers = with maintainers; [ mic92 roblabla foxit64 ];
};
}