Unverified Commit 9b1b9887 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

prometheus-alertmanager: Add versionCheckHook

parent fc317efe
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  fetchFromGitHub,
  installShellFiles,
  nixosTests,
  versionCheckHook,
}:

buildGoModule (finalAttrs: {
@@ -49,11 +50,17 @@ buildGoModule (finalAttrs: {

  passthru.tests = { inherit (nixosTests.prometheus) alertmanager; };

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  meta = with lib; {
    description = "Alert dispatcher for the Prometheus monitoring system";
    homepage = "https://github.com/prometheus/alertmanager";
    changelog = "https://github.com/prometheus/alertmanager/blob/v${finalAttrs.version}/CHANGELOG.md";
    license = licenses.asl20;
    mainProgram = "alertmanager";
    maintainers = with maintainers; [
      benley
      fpletz