matrix-alertmanager-receiver: 2025.5.21 -> 2025.7.2
This commit is contained in:
parent
9ce96e0b24
commit
9e90ad6b30
@ -1,29 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
buildGo124Module,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGo124Module rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "matrix-alertmanager-receiver";
|
||||
version = "2025.5.21";
|
||||
version = "2025.7.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "metio";
|
||||
repo = "matrix-alertmanager-receiver";
|
||||
tag = version;
|
||||
hash = "sha256-W0dvaJ1o43un5UskAmpKomZjIHiclOoiOkxGawP0fyk=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Dz2oP3lNxO75Lqmke0WprvI1yuuQIv3HffNxMYCSJso=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-ZM7qA73fPPRgs378uDQoYs32e7i8LmBjqZ7RjzWEW28=";
|
||||
vendorHash = "sha256-+tkxK3h6N45XA4OvdNYrRFNbqJLGflY2v8oF36Gpwm4=";
|
||||
|
||||
env.CGO_ENABLED = "0";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.matrixAlertmanagerReceiverVersion=${version}"
|
||||
"-X main.matrixAlertmanagerReceiverVersion=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
@ -31,9 +39,9 @@ buildGo124Module rec {
|
||||
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/${version}";
|
||||
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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user