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
|
let
|
||||||
base3 = callPackage ./tesseract3.nix {};
|
base3 = callPackage ./tesseract3.nix {};
|
||||||
base4 = callPackage ./tesseract4.nix {};
|
base4 = callPackage ./tesseract4.nix {};
|
||||||
base5 = callPackage ./tesseract5.nix {};
|
base5 = callPackage ./tesseract5.nix {
|
||||||
|
inherit Accelerate CoreGraphics CoreVideo;
|
||||||
|
};
|
||||||
languages = callPackage ./languages.nix {};
|
languages = callPackage ./languages.nix {};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autoconf-archive, pkg-config
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tesseract";
|
pname = "tesseract";
|
||||||
|
@ -27,6 +29,10 @@ stdenv.mkDerivation rec {
|
||||||
icu
|
icu
|
||||||
pango
|
pango
|
||||||
opencl-headers
|
opencl-headers
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
Accelerate
|
||||||
|
CoreGraphics
|
||||||
|
CoreVideo
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -34,6 +40,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://github.com/tesseract-ocr/tesseract";
|
homepage = "https://github.com/tesseract-ocr/tesseract";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ anselmschueler ];
|
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 { };
|
termtosvg = callPackage ../tools/misc/termtosvg { };
|
||||||
|
|
||||||
inherit (callPackage ../applications/graphics/tesseract {})
|
inherit (callPackage ../applications/graphics/tesseract {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
|
||||||
|
})
|
||||||
tesseract3
|
tesseract3
|
||||||
tesseract4
|
tesseract4
|
||||||
tesseract5;
|
tesseract5;
|
||||||
|
|
Loading…
Reference in a new issue