prometheus-node-exporter: Add versionCheckHook

This commit is contained in:
Jonathan Davies
2025-11-22 11:17:36 +00:00
parent 636528d617
commit 6d5dec6f5a
@@ -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";