Merge pull request #186611 from viraptor/tesseract-5-darwin
This commit is contained in:
commit
d70ce02bf6
3 changed files with 15 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
|||
{ callPackage, lowPrio }:
|
||||
{ callPackage, lowPrio, Accelerate, CoreGraphics, CoreVideo}:
|
||||
|
||||
let
|
||||
base3 = callPackage ./tesseract3.nix {};
|
||||
base4 = callPackage ./tesseract4.nix {};
|
||||
base5 = callPackage ./tesseract5.nix {};
|
||||
base5 = callPackage ./tesseract5.nix {
|
||||
inherit Accelerate CoreGraphics CoreVideo;
|
||||
};
|
||||
languages = callPackage ./languages.nix {};
|
||||
in
|
||||
{
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
|
||||
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch }:
|
||||
, leptonica, libpng, libtiff, icu, pango, opencl-headers, fetchpatch
|
||||
, Accelerate, CoreGraphics, CoreVideo
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tesseract";
|
||||
|
@ -27,6 +29,10 @@ stdenv.mkDerivation rec {
|
|||
icu
|
||||
pango
|
||||
opencl-headers
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Accelerate
|
||||
CoreGraphics
|
||||
CoreVideo
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
@ -34,6 +40,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = "https://github.com/tesseract-ocr/tesseract";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ anselmschueler ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31058,7 +31058,9 @@ with pkgs;
|
|||
|
||||
termtosvg = callPackage ../tools/misc/termtosvg { };
|
||||
|
||||
inherit (callPackage ../applications/graphics/tesseract {})
|
||||
inherit (callPackage ../applications/graphics/tesseract {
|
||||
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
|
||||
})
|
||||
tesseract3
|
||||
tesseract4
|
||||
tesseract5;
|
||||
|
|
Loading…
Reference in a new issue