forked from mirrors/nixpkgs
tesseract5: init at 5.1.0
This commit is contained in:
parent
1b38ecfc74
commit
92a849e613
|
@ -829,6 +829,13 @@
|
|||
githubId = 5327697;
|
||||
name = "Anatolii Prylutskyi";
|
||||
};
|
||||
anselmschueler = {
|
||||
email = "mail@anselmschueler.com";
|
||||
github = "schuelermine";
|
||||
githubId = 48802534;
|
||||
name = "Anselm Schüler";
|
||||
matrix = "@schuelermine:matrix.org";
|
||||
};
|
||||
antoinerg = {
|
||||
email = "roygobeil.antoine@gmail.com";
|
||||
github = "antoinerg";
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
base3 = callPackage ./tesseract3.nix {};
|
||||
base4 = callPackage ./tesseract4.nix {};
|
||||
base5 = callPackage ./tesseract5.nix {};
|
||||
languages = callPackage ./languages.nix {};
|
||||
in
|
||||
{
|
||||
|
@ -15,4 +16,9 @@ in
|
|||
tesseractBase = base4;
|
||||
languages = languages.v4;
|
||||
});
|
||||
|
||||
tesseract5 = lowPrio (callPackage ./wrapper.nix {
|
||||
tesseractBase = base5;
|
||||
languages = languages.v4;
|
||||
});
|
||||
}
|
||||
|
|
39
pkgs/applications/graphics/tesseract/tesseract5.nix
Normal file
39
pkgs/applications/graphics/tesseract/tesseract5.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
|
||||
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tesseract";
|
||||
version = "5.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tesseract-ocr";
|
||||
repo = "tesseract";
|
||||
rev = version;
|
||||
sha256 = "sha256-B1x3wxr9Sn2rsG8AHncPTEErhDo7YtpDRxfW9ZOPWoU=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
autoconf-archive
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
leptonica
|
||||
libpng
|
||||
libtiff
|
||||
icu
|
||||
pango
|
||||
opencl-headers
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "OCR engine";
|
||||
homepage = "https://github.com/tesseract-ocr/tesseract";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ anselmschueler ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
|
@ -29784,7 +29784,8 @@ with pkgs;
|
|||
|
||||
inherit (callPackage ../applications/graphics/tesseract {})
|
||||
tesseract3
|
||||
tesseract4;
|
||||
tesseract4
|
||||
tesseract5;
|
||||
tesseract = tesseract3;
|
||||
|
||||
tetraproc = callPackage ../applications/audio/tetraproc { };
|
||||
|
|
Loading…
Reference in a new issue