From 448684ee5192a8c2daacba0e9ee0272837b17a13 Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Sun, 27 Oct 2024 09:22:51 +0100 Subject: [PATCH] mautrix-signal: fix media uploads --- pkgs/servers/mautrix-signal/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/servers/mautrix-signal/default.nix b/pkgs/servers/mautrix-signal/default.nix index e35c811ec27fd..143034ecddee9 100644 --- a/pkgs/servers/mautrix-signal/default.nix +++ b/pkgs/servers/mautrix-signal/default.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + fetchpatch, olm, libsignal-ffi, # This option enables the use of an experimental pure-Go implementation of @@ -23,6 +24,14 @@ buildGoModule rec { hash = "sha256-KGIlLGGVaySRrHt6P2AlnDEew/ERyrDYyN2lOz3318M="; }; + patches = [ + # fixes broken media uploads, will be included in the next release + (fetchpatch { + url = "https://github.com/mautrix/signal/commit/b09995a892c9930628e1669532d9c1283a4938c8.patch"; + hash = "sha256-M8TvCLZG5MbD/Bkpo4cxQf/19dPfbGzMyIPn9utPLco="; + }) + ]; + buildInputs = (lib.optional (!withGoolm) olm) ++ [ # must match the version used in https://github.com/mautrix/signal/tree/main/pkg/libsignalgo # see https://github.com/mautrix/signal/issues/401