prometheus-pushgateway: Add versionCheckHook

This commit is contained in:
Jonathan Davies
2025-11-22 11:16:27 +00:00
parent 4dff818ec3
commit 73dfc66c6b
@@ -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";