46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
28 lines
829 B
Nix
28 lines
829 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkgconfig
|
|
, leptonica, libpng, libtiff, icu, pango, opencl-headers }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tesseract";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tesseract-ocr";
|
|
repo = "tesseract";
|
|
rev = version;
|
|
sha256 = "06i7abxy2ifmdx1fak81cx0kns85n8hvp0339jk6242fhshibljx";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook autoconf-archive ];
|
|
buildInputs = [ leptonica libpng libtiff icu pango opencl-headers ];
|
|
|
|
meta = {
|
|
description = "OCR engine";
|
|
homepage = https://github.com/tesseract-ocr/tesseract;
|
|
license = stdenv.lib.licenses.asl20;
|
|
maintainers = with stdenv.lib.maintainers; [ viric earvstedt ];
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|