Commit 6a32ac7c authored by figsoda's avatar figsoda
Browse files

telegraf: add version test

parent a0215e28
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
, testers
, telegraf
}:

buildGoModule rec {
  pname = "telegraf";
@@ -25,12 +31,18 @@ buildGoModule rec {
    "-X=github.com/influxdata/telegraf/internal.Version=${version}"
  ];

  passthru.tests = { inherit (nixosTests) telegraf; };
  passthru.tests = {
    inherit (nixosTests) telegraf;
    version = testers.testVersion {
      package = 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/";
    changelog = "https://github.com/influxdata/telegraf/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ mic92 roblabla timstott ];
  };
}