nixpkgs-suyu/pkgs/applications/graphics/tesseract/tesseract5.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
974 B
Nix
Raw Normal View History

2022-05-02 12:38:53 +02:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
2022-08-14 12:03:31 +02:00
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch
, Accelerate, CoreGraphics, CoreVideo
}:
2022-05-02 12:38:53 +02:00
stdenv.mkDerivation rec {
pname = "tesseract";
2022-12-25 05:48:50 +01:00
version = "5.3.0";
2022-05-02 12:38:53 +02:00
src = fetchFromGitHub {
owner = "tesseract-ocr";
repo = "tesseract";
rev = version;
2022-12-25 05:48:50 +01:00
sha256 = "sha256-Y+RZOnBCjS8XrWeFA4ExUxwsuWA0DndNtpIWjtRi1G8=";
2022-05-02 12:38:53 +02:00
};
enableParallelBuilding = true;
nativeBuildInputs = [
pkg-config
autoreconfHook
autoconf-archive
];
buildInputs = [
leptonica
libpng
libtiff
icu
pango
opencl-headers
2022-08-14 12:03:31 +02:00
] ++ lib.optionals stdenv.isDarwin [
Accelerate
CoreGraphics
CoreVideo
2022-05-02 12:38:53 +02:00
];
meta = {
description = "OCR engine";
homepage = "https://github.com/tesseract-ocr/tesseract";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ anselmschueler ];
2022-08-14 12:03:31 +02:00
platforms = lib.platforms.unix;
2022-05-02 12:38:53 +02:00
};
}