2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
|
2018-12-18 18:02:13 +00:00
|
|
|
, leptonica, libpng, libtiff, icu, pango, opencl-headers }:
|
2017-04-11 00:30:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tesseract";
|
2020-01-17 12:04:34 +00:00
|
|
|
version = "4.1.1";
|
2017-04-11 00:30:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tesseract-ocr";
|
|
|
|
repo = "tesseract";
|
2018-11-24 23:23:18 +00:00
|
|
|
rev = version;
|
2020-01-17 12:04:34 +00:00
|
|
|
sha256 = "1ca27zbjpx35nxh9fha410z3jskwyj06i5hqiqdc08s2d7kdivwn";
|
2017-04-11 00:30:45 +00:00
|
|
|
};
|
|
|
|
|
2018-12-18 18:02:13 +00:00
|
|
|
enableParallelBuilding = true;
|
2017-04-11 00:30:45 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook autoconf-archive ];
|
2017-04-11 00:30:45 +00:00
|
|
|
buildInputs = [ leptonica libpng libtiff icu pango opencl-headers ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCR engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tesseract-ocr/tesseract";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ viric earvstedt ];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2017-04-11 00:30:45 +00:00
|
|
|
};
|
|
|
|
}
|