nixpkgs/pkgs/by-name/te/telegraf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-28 14:15:23 +00:00
{ lib
, buildGo123Module
2023-05-28 14:15:23 +00:00
, fetchFromGitHub
, nixosTests
2024-05-21 20:17:56 +00:00
, stdenv
2023-05-28 14:15:23 +00:00
, testers
, telegraf
}:
buildGo123Module rec {
pname = "telegraf";
version = "1.32.3";
2019-01-21 11:28:32 +00:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
2020-03-27 07:18:52 +00:00
rev = "v${version}";
hash = "sha256-H/thJ88cfl75rRByLYIjpPx6lfBSSryhYii8jBl/PBA=";
};
vendorHash = "sha256-3Wcbl4DM4SHvctVvQTsqQNRkB3z+273kvM/KwypmB70=";
2021-07-25 09:33:21 +00:00
proxyVendor = true;
2021-08-21 08:23:48 +00:00
ldflags = [
2023-05-28 14:14:26 +00:00
"-s"
"-w"
"-X=github.com/influxdata/telegraf/internal.Commit=${src.rev}"
"-X=github.com/influxdata/telegraf/internal.Version=${version}"
2021-08-21 08:23:48 +00:00
];
2017-10-01 09:19:39 +00:00
2023-05-28 14:15:23 +00:00
passthru.tests = {
version = testers.testVersion {
package = telegraf;
};
2024-05-21 20:17:56 +00:00
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
inherit (nixosTests) telegraf;
2023-05-28 14:15:23 +00:00
};
2020-01-28 14:08:38 +00:00
meta = with lib; {
description = "Plugin-driven server agent for collecting & reporting metrics";
mainProgram = "telegraf";
2020-03-27 07:18:52 +00:00
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
2023-05-28 14:15:23 +00:00
changelog = "https://github.com/influxdata/telegraf/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
2023-06-07 01:29:25 +00:00
maintainers = with maintainers; [ mic92 roblabla timstott zowoq ];
};
}