2017-04-11 02:30:45 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkgconfig
|
2018-12-18 19:02:13 +01:00
|
|
|
, leptonica, libpng, libtiff, icu, pango, opencl-headers }:
|
2017-04-11 02:30:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tesseract-${version}";
|
2019-07-17 04:00:34 +02:00
|
|
|
version = "4.1.0";
|
2017-04-11 02:30:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tesseract-ocr";
|
|
|
|
repo = "tesseract";
|
2018-11-25 00:23:18 +01:00
|
|
|
rev = version;
|
2019-07-17 04:00:34 +02:00
|
|
|
sha256 = "06i7abxy2ifmdx1fak81cx0kns85n8hvp0339jk6242fhshibljx";
|
2017-04-11 02:30:45 +02:00
|
|
|
};
|
|
|
|
|
2018-12-18 19:02:13 +01:00
|
|
|
enableParallelBuilding = true;
|
2017-04-11 02:30:45 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook autoconf-archive ];
|
|
|
|
buildInputs = [ leptonica libpng libtiff icu pango opencl-headers ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OCR engine";
|
2017-08-22 20:50:04 +02:00
|
|
|
homepage = https://github.com/tesseract-ocr/tesseract;
|
2017-04-11 02:30:45 +02:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2018-12-18 19:02:13 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric earvstedt ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2017-04-11 02:30:45 +02:00
|
|
|
};
|
|
|
|
}
|