New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tesseract: make tessdata a fixed output derivation #41227
Conversation
the full tessdata is nearly a GB, so sparing a copy each time we need to rebuild tesseract without updating tessdata is worth it.
cc @viric as maintainer. |
@GrahamcOfBorg build tesseract |
Success on x86_64-linux (full log) Attempted: tesseract Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: tesseract Partial log (click to expand)
|
@GrahamcOfBorg build python36Packages.pyocr |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: python36Packages.pyocr Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python36Packages.pyocr Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: tesseract Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python36Packages.pyocr Partial log (click to expand)
|
|
This make tessdata a fixed output derivation if all languages are enabled or (only some languages are enabled and a hash is provided).
Motivation for this change
the full tessdata is nearly a GB, so sparing a copy each time we need to
rebuild tesseract without updating tessdata is worth it.
For example, I have currently 10 copies of tessdata in my store for past generations of my system. Well, they are optimised, but still.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)tesseract --list-langs