about summary refs log tree commit diff
path: root/pkgs/applications/graphics/tesseract
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-11-12 19:09:14 +0200
committerArtturin <Artturin@artturin.com>2021-11-14 16:21:22 +0200
commite50c9981d329312fb764b7d58e17488716bf2879 (patch)
tree01f0f1f63a772c0a5a6f273154f31678c78ffcb3 /pkgs/applications/graphics/tesseract
parenta8506b65b03ab7b8331855849b6ac509cbe2cb0c (diff)
tesseract4: apply patches to fix build on aarch64-darwin
Diffstat (limited to 'pkgs/applications/graphics/tesseract')
-rw-r--r--pkgs/applications/graphics/tesseract/tesseract4.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/tesseract/tesseract4.nix b/pkgs/applications/graphics/tesseract/tesseract4.nix
index 49cf93835b100..f78220d2f401c 100644
--- a/pkgs/applications/graphics/tesseract/tesseract4.nix
+++ b/pkgs/applications/graphics/tesseract/tesseract4.nix
@@ -1,5 +1,5 @@
 { lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
-, leptonica, libpng, libtiff, icu, pango, opencl-headers }:
+, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "tesseract";
@@ -12,6 +12,18 @@ stdenv.mkDerivation rec {
     sha256 = "1ca27zbjpx35nxh9fha410z3jskwyj06i5hqiqdc08s2d7kdivwn";
   };
 
+  patches = [
+    # https://github.com/tesseract-ocr/tesseract/issues/3447
+    (fetchpatch {
+      url = "https://github.com/tesseract-ocr/tesseract/commit/dbc79b09d195490dfa3f7d338eadac07ad6683f7.patch";
+      sha256 = "sha256-lGlg0etuU4RXfdq1QH2bYObdeGrFHKf9O8zMUAbfNIQ=";
+    })
+    (fetchpatch {
+      url = "https://github.com/tesseract-ocr/tesseract/commit/6dc4b184b1ebf2e68461f6b63f63a033bc7245f7.patch";
+      sha256 = "sha256-DwIX3r5NmeajI6WgIVHDbkhLH/ygJIjPO5XrbzWQhSw=";
+    })
+  ];
+
   enableParallelBuilding = true;
 
   nativeBuildInputs = [ pkg-config autoreconfHook autoconf-archive ];