Unverified Commit 73dfc66c authored by Jonathan Davies's avatar Jonathan Davies
Browse files

prometheus-pushgateway: Add versionCheckHook

parent 4dff818e
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -3,8 +3,7 @@
  buildGoModule,
  fetchFromGitHub,
  nixosTests,
  testers,
  prometheus-pushgateway,
  versionCheckHook,
}:

buildGoModule rec {
@@ -32,11 +31,13 @@ buildGoModule rec {

  passthru.tests = {
    inherit (nixosTests.prometheus) pushgateway;
    version = testers.testVersion {
      package = prometheus-pushgateway;
    };
  };

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  meta = with lib; {
    description = "Allows ephemeral and batch jobs to expose metrics to Prometheus";
    mainProgram = "pushgateway";