From b99b5e51b67239b147b697bec0626d67cc98092a Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 15 Jul 2025 18:05:19 -0400 Subject: [PATCH] mautrix-gmessages: add goolm override --- pkgs/by-name/ma/mautrix-gmessages/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ma/mautrix-gmessages/package.nix b/pkgs/by-name/ma/mautrix-gmessages/package.nix index 48e41c595bbf..e896de8079a8 100644 --- a/pkgs/by-name/ma/mautrix-gmessages/package.nix +++ b/pkgs/by-name/ma/mautrix-gmessages/package.nix @@ -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;