mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #305267 from e1mo/paperless-always-eng
nixos/paperless: Always buidl tesseract with english
This commit is contained in:
commit
3905a63bdc
|
@ -203,9 +203,12 @@ in
|
|||
apply = pkg: pkg.override {
|
||||
tesseract5 = pkg.tesseract5.override {
|
||||
# always enable detection modules
|
||||
# tesseract fails to build when eng is not present
|
||||
enableLanguages = if cfg.settings ? PAPERLESS_OCR_LANGUAGE then
|
||||
[ "equ" "osd" ]
|
||||
lists.unique (
|
||||
[ "equ" "osd" "eng" ]
|
||||
++ lib.splitString "+" cfg.settings.PAPERLESS_OCR_LANGUAGE
|
||||
)
|
||||
else null;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -23,6 +23,7 @@ import ./make-test-python.nix ({ lib, ... }: {
|
|||
};
|
||||
services.paperless.settings = {
|
||||
PAPERLESS_DBHOST = "/run/postgresql";
|
||||
PAPERLESS_OCR_LANGUAGE = "deu";
|
||||
};
|
||||
};
|
||||
}; in self;
|
||||
|
|
Loading…
Reference in a new issue