
Release notes: https://github.com/metio/matrix-alertmanager-receiver/releases/tag/2025.8.6 Full changelog: https://github.com/metio/matrix-alertmanager-receiver/compare/2025.7.30...2025.8.6
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "matrix-alertmanager-receiver";
|
|
version = "2025.8.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "metio";
|
|
repo = "matrix-alertmanager-receiver";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-rnGKpJppR7NoOAx/jGt7vxr1EVok3tMzkr9ry/k57L8=";
|
|
};
|
|
|
|
vendorHash = "sha256-JMjfrSdaN2zXgACkPddQ9h7SLV6jhpUvFTk56UfPWJg=";
|
|
|
|
env.CGO_ENABLED = "0";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-X main.matrixAlertmanagerReceiverVersion=${finalAttrs.version}"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Alertmanager client that forwards alerts to a Matrix room";
|
|
homepage = "https://github.com/metio/matrix-alertmanager-receiver";
|
|
changelog = "https://github.com/metio/matrix-alertmanager-receiver/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ liberodark ];
|
|
mainProgram = "matrix-alertmanager-receiver";
|
|
};
|
|
})
|