diff --git a/matrix/matrix-media-repo/default.nix b/matrix/matrix-media-repo/default.nix index 53d80e6..d5570a5 100644 --- a/matrix/matrix-media-repo/default.nix +++ b/matrix/matrix-media-repo/default.nix @@ -16,6 +16,7 @@ in inherit (source) rev sha256; }; #patches = [./async-media.patch]; + patches = [./fix-build.patch]; vendorSha256 = builtins.readFile ./vendor.sha256; nativeBuildInputs = [ git diff --git a/matrix/matrix-media-repo/fix-build.patch b/matrix/matrix-media-repo/fix-build.patch new file mode 100644 index 0000000..39c1901 --- /dev/null +++ b/matrix/matrix-media-repo/fix-build.patch @@ -0,0 +1,22 @@ +From 4728b8b0faf0fedc4dcb19e7bfa932333fc25147 Mon Sep 17 00:00:00 2001 +From: Charlotte +Date: Fri, 10 Mar 2023 16:06:54 +0100 +Subject: [PATCH] Readd io import in plugin_antispam_ocr + +Fixes broken build +--- + cmd/plugin_antispam_ocr/main.go | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmd/plugin_antispam_ocr/main.go b/cmd/plugin_antispam_ocr/main.go +index 5b07356..0cf0899 100644 +--- a/cmd/plugin_antispam_ocr/main.go ++++ b/cmd/plugin_antispam_ocr/main.go +@@ -7,6 +7,7 @@ import ( + "errors" + "fmt" + "image" ++ "io" + "math" + "net/http" + "os"