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

34 lines
907 B
Nix
Raw Normal View History

2020-03-27 08:18:52 +01:00
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2020-03-27 08:18:52 +01:00
buildGoModule rec {
pname = "telegraf";
2020-07-02 22:00:08 +02:00
version = "1.14.5";
goPackagePath = "github.com/influxdata/telegraf";
excludedPackages = "test";
2019-01-21 12:28:32 +01:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
2020-03-27 08:18:52 +01:00
rev = "v${version}";
2020-07-02 22:00:08 +02:00
sha256 = "1rnrg1q0dylr62cfkzspp47w818cja3hs6bbarcksmp0s23rq6lz";
};
2020-07-02 22:00:08 +02:00
vendorSha256 = "1mjlakf88fa75qldkz62aja0wn0m6xqfr45vjy0lwpi0adc0fz70";
2020-03-27 08:18:52 +01:00
2017-10-01 11:19:39 +02:00
buildFlagsArray = [ ''-ldflags=
2019-09-18 04:16:09 +02:00
-w -s -X main.version=${version}
2017-10-01 11:19:39 +02:00
'' ];
2020-01-28 15:08:38 +01:00
passthru.tests = { inherit (nixosTests) telegraf; };
meta = with lib; {
description = "The plugin-driven server agent for collecting & reporting metrics.";
license = licenses.mit;
2020-03-27 08:18:52 +01:00
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
2020-01-27 12:51:45 +01:00
maintainers = with maintainers; [ mic92 roblabla foxit64 ];
};
}