Unverified Commit 6d5dec6f authored by Jonathan Davies's avatar Jonathan Davies
Browse files

prometheus-node-exporter: Add versionCheckHook

parent 636528d6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildGoModule,
  fetchFromGitHub,
  nixosTests,
  versionCheckHook,
}:

buildGoModule rec {
@@ -36,6 +37,11 @@ buildGoModule rec {

  passthru.tests = { inherit (nixosTests.prometheus-exporters) node; };

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  meta = {
    description = "Prometheus exporter for machine metrics";
    mainProgram = "node_exporter";