d9e13ed064
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
33 lines
858 B
Nix
33 lines
858 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "telegraf";
|
|
version = "1.20.0";
|
|
|
|
excludedPackages = "test";
|
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "telegraf";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-whsPXevnN/Kg09hcjEAeAduLZsYbo7IvUm5z4HodwrQ=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-VywVlCcdOV/TdXQBa88oU9V8U4EbuYMId4aT4YAY1Wk=";
|
|
proxyVendor = true;
|
|
|
|
ldflags = [
|
|
"-w" "-s" "-X main.version=${version}"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests) telegraf; };
|
|
|
|
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 timstott ];
|
|
};
|
|
}
|