Tesseract broken due to leptopnica open issue

Hi, Tesseract is actual broken in nixos because of this leptonica bug ( ubuntu 18.04 - Tesseract TIF to PDF error: Error in l_generateCIDataForPdf: cid not made from file - Stack Overflow)
I search for a way to reset leptonica to 1.82 - but as a nix-os-beginner i fail to find a way.
Is there a way to force tesseract to be build with leptonica 1.82 rather then 1.83?
johannes

you can override certain packages, see the docs for details nixpkgs/doc/languages-frameworks/python.section.md at 68b3d3225096da1bc66ba8e65f69fa8d19248358 · NixOS/nixpkgs · GitHub

i found it much more easy to follow: ( Luc Perkins | Blog | The easiest way (I’ve found) to create your own Nix channel) and forking the nixpgk - editing the original, test if it works and make a pull request ( leptonica: from 1.83.0 → to 1.83.1 by JoeRu · Pull Request #241121 · NixOS/nixpkgs (github.com) )

create a ‘personal’ nix-channel from a fork of nixpkg

nix-channel --add https://github.com/<myusername>/<myfork>/archive/<tree>.tar.gz personal
nix-channel --update
nix-env -iA personal.<mypackage>

So - everyone has something about that fix. :slight_smile: