tesseract5: init at 5.1.0

This commit is contained in:
Anselm Schüler 2022-05-02 12:38:53 +02:00 committed by Erik Arvstedt
parent 1b38ecfc74
commit 92a849e613
No known key found for this signature in database
GPG key ID: 33312B944DD97846
4 changed files with 54 additions and 1 deletions

View file

@ -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";

View file

@ -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;
});
}

View 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;
};
}

View file

@ -29784,7 +29784,8 @@ with pkgs;
inherit (callPackage ../applications/graphics/tesseract {})
tesseract3
tesseract4;
tesseract4
tesseract5;
tesseract = tesseract3;
tetraproc = callPackage ../applications/audio/tetraproc { };