nixpkgs/pkgs/applications/graphics/tesseract/default.nix
Erik Arvstedt aaaed13077
tesseract: add a wrapper to setup languages
Tesseract is now decoupled from the tessdata language corpus.

This avoids recompilation when building Tesseract with a custom set
of languages.

Update k2pdfopt to use the new wrapper interface.
2018-12-19 18:08:16 +01:00

19 lines
391 B
Nix

{ callPackage, lowPrio }:
let
base3 = callPackage ./tesseract3.nix {};
base4 = callPackage ./tesseract4.nix {};
languages = callPackage ./languages.nix {};
in
{
tesseract = callPackage ./wrapper.nix {
tesseractBase = base3;
languages = languages.v3;
};
tesseract_4 = lowPrio (callPackage ./wrapper.nix {
tesseractBase = base4;
languages = languages.v4;
});
}