mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
k2pdfopt: reenable leptonica
Co-authored-by: Martin Schwaighofer <mschwaig@users.noreply.github.com>
This commit is contained in:
parent
899ee6ec3d
commit
3ecfcd5d98
1 changed files with 4 additions and 5 deletions
|
@ -26,8 +26,9 @@
|
|||
# Tesseract support is currently broken
|
||||
# See: https://github.com/NixOS/nixpkgs/issues/368349
|
||||
enableTesseract ? false,
|
||||
leptonica,
|
||||
tesseract5,
|
||||
enableLeptonica ? true,
|
||||
leptonica,
|
||||
opencl-headers,
|
||||
fetchDebianPatch,
|
||||
}:
|
||||
|
@ -256,10 +257,8 @@ stdenv.mkDerivation rec {
|
|||
++ lib.optional enableMuPDF mupdf_modded
|
||||
++ lib.optional enableDJVU djvulibre
|
||||
++ lib.optional enableGOCR gocr
|
||||
++ lib.optionals enableTesseract [
|
||||
leptonica_modded
|
||||
tesseract_modded
|
||||
];
|
||||
++ lib.optional enableTesseract tesseract_modded
|
||||
++ lib.optional (enableLeptonica || enableTesseract) leptonica_modded;
|
||||
|
||||
dontUseCmakeBuildDir = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue