mautrix-signal: enable checks

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

View File

@ -48,7 +48,20 @@ buildGoModule rec {
vendorHash = "sha256-bKQKO5RqgMrWq7NyNF1rj2CLp5SeBP80HWxF8MWnZ1U=";
doCheck = false;
doCheck = true;
preCheck =
''
# Needed by the tests to be able to find libstdc++
export LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH"
''
+ (lib.optionalString (!withGoolm) ''
# When using libolm, the tests need explicit linking to libstdc++
export CGO_LDFLAGS="-lstdc++"
'');
postCheck = ''
unset LD_LIBRARY_PATH
'';
meta = with lib; {
homepage = "https://github.com/mautrix/signal";