fix matrix-media-repo build
This commit is contained in:
parent
df1191af73
commit
f14c9296c9
2 changed files with 23 additions and 0 deletions
|
@ -16,6 +16,7 @@ in
|
||||||
inherit (source) rev sha256;
|
inherit (source) rev sha256;
|
||||||
};
|
};
|
||||||
#patches = [./async-media.patch];
|
#patches = [./async-media.patch];
|
||||||
|
patches = [./fix-build.patch];
|
||||||
vendorSha256 = builtins.readFile ./vendor.sha256;
|
vendorSha256 = builtins.readFile ./vendor.sha256;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
git
|
git
|
||||||
|
|
22
matrix/matrix-media-repo/fix-build.patch
Normal file
22
matrix/matrix-media-repo/fix-build.patch
Normal 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"
|
Reference in a new issue