mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
76d723ce4f
Diff: https://github.com/influxdata/telegraf/compare/v1.32.3...v1.32.3 Changelog: https://github.com/influxdata/telegraf/blob/v1.32.3/CHANGELOG.md
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib
|
|
, buildGo123Module
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
, stdenv
|
|
, testers
|
|
, telegraf
|
|
}:
|
|
|
|
buildGo123Module rec {
|
|
pname = "telegraf";
|
|
version = "1.32.3";
|
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "telegraf";
|
|
rev = "v${version}";
|
|
hash = "sha256-H/thJ88cfl75rRByLYIjpPx6lfBSSryhYii8jBl/PBA=";
|
|
};
|
|
|
|
vendorHash = "sha256-3Wcbl4DM4SHvctVvQTsqQNRkB3z+273kvM/KwypmB70=";
|
|
proxyVendor = true;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/influxdata/telegraf/internal.Commit=${src.rev}"
|
|
"-X=github.com/influxdata/telegraf/internal.Version=${version}"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = telegraf;
|
|
};
|
|
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
|
inherit (nixosTests) telegraf;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Plugin-driven server agent for collecting & reporting metrics";
|
|
mainProgram = "telegraf";
|
|
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
|
|
changelog = "https://github.com/influxdata/telegraf/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mic92 roblabla timstott zowoq ];
|
|
};
|
|
}
|