fix matrix-media-repo build

This commit is contained in:
Charlotte 🦝 Delenk 2023-03-10 16:08:45 +01:00
parent df1191af73
commit f14c9296c9
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 23 additions and 0 deletions

View file

@ -16,6 +16,7 @@ in
inherit (source) rev sha256;
};
#patches = [./async-media.patch];
patches = [./fix-build.patch];
vendorSha256 = builtins.readFile ./vendor.sha256;
nativeBuildInputs = [
git

View file

@ -0,0 +1,22 @@
From 4728b8b0faf0fedc4dcb19e7bfa932333fc25147 Mon Sep 17 00:00:00 2001
From: Charlotte <lotte@chir.rs>
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"