From fa2e57db718199b20d77b54180eb60ed2db0958a Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Tue, 5 Nov 2024 13:37:07 +0100 Subject: [PATCH] mautrix-signal: add version test Signed-off-by: Christoph Heiss --- pkgs/servers/mautrix-signal/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/mautrix-signal/default.nix b/pkgs/servers/mautrix-signal/default.nix index 20361325ef63b..abf0007d5fba0 100644 --- a/pkgs/servers/mautrix-signal/default.nix +++ b/pkgs/servers/mautrix-signal/default.nix @@ -6,6 +6,7 @@ fetchpatch, olm, libsignal-ffi, + versionCheckHook, # This option enables the use of an experimental pure-Go implementation of # the Olm protocol instead of libolm for end-to-end encryption. Using goolm # is not recommended by the mautrix developers, but they are interested in @@ -59,6 +60,10 @@ buildGoModule rec { export CGO_LDFLAGS="-lstdc++" ''); + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; + meta = with lib; { homepage = "https://github.com/mautrix/signal"; description = "Matrix-Signal puppeting bridge";