prometheus-pushgateway: Add versionCheckHook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user