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

34 lines
835 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "telegraf-${version}";
version = "1.10.2";
goPackagePath = "github.com/influxdata/telegraf";
excludedPackages = "test";
2019-01-21 12:28:32 +01:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
rev = "${version}";
sha256 = "0g27yczb49xf8nbhkzx7lv8378613afq9qx1gr5yhlpfrl4sgb69";
};
2017-10-01 11:19:39 +02:00
buildFlagsArray = [ ''-ldflags=
-X main.version=${version}
'' ];
goDeps = ./. + "/deps-${version}.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/;
maintainers = with maintainers; [ mic92 roblabla ];
platforms = platforms.unix;
};
}