15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
20 owner = "tesseract-ocr";
23 hash = "sha256-28osuZnVwkJpNTYkU+5D5PI8xtViFzGCMScHzkS2H20=";
26 # leptonica 1.83 made internal structures private. using internal headers isn't
27 # great, but tesseract3's days are numbered anyway
29 for f in textord/devanagari_processing.cpp cube/cube_line_object.h cube/cube_line_segmenter.h cube/cube_utils.h ; do
30 sed -i '/allheaders.h/a#include "pix_internal.h"' "$f"
34 enableParallelBuilding = true;
50 LIBLEPT_HEADERSDIR = "${leptonica}/include";
53 description = "OCR engine";
54 homepage = "https://github.com/tesseract-ocr/tesseract";
55 license = lib.licenses.asl20;
56 maintainers = with lib.maintainers; [ erikarvstedt ];
57 platforms = with lib.platforms; linux ++ darwin;
58 mainProgram = "tesseract";