mautrix-gmessages: add goolm override

This commit is contained in:
Henry-Hiles 2025-07-15 18:05:19 -04:00
parent 1470e97ebe
commit b99b5e51b6
No known key found for this signature in database

View File

@ -6,6 +6,12 @@
nix-update-script,
testers,
mautrix-gmessages,
# 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 people
# trying it out in non-production-critical environments and reporting any
# issues they run into.
withGoolm ? false,
}:
buildGoModule rec {
@ -28,7 +34,8 @@ buildGoModule rec {
"main.Tag=${version}"
];
buildInputs = [ olm ];
buildInputs = lib.optional (!withGoolm) olm;
tags = lib.optional withGoolm "goolm";
doCheck = false;