mautrix-signal: add version test

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-11-05 13:37:07 +01:00
parent 9e15728241
commit 218ad1bf6a
No known key found for this signature in database
GPG Key ID: 1538094429952F86

View File

@ -6,6 +6,7 @@
fetchpatch, fetchpatch,
olm, olm,
libsignal-ffi, libsignal-ffi,
versionCheckHook,
# This option enables the use of an experimental pure-Go implementation of # 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 # 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 # is not recommended by the mautrix developers, but they are interested in
@ -63,6 +64,10 @@ buildGoModule rec {
unset LD_LIBRARY_PATH unset LD_LIBRARY_PATH
''; '';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mautrix/signal"; homepage = "https://github.com/mautrix/signal";
description = "Matrix-Signal puppeting bridge"; description = "Matrix-Signal puppeting bridge";