feat: moar ocr

This commit is contained in:
Kat Inskip 2025-10-23 20:30:53 -07:00
parent 71383c5b5b
commit e9b291078d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 69 additions and 63 deletions

13
packages/ocr/default.nix Normal file
View file

@ -0,0 +1,13 @@
{
lib,
writeShellScriptBin,
imagemagick,
ocrmypdf,
}:
writeShellScriptBin "ocr" ''
export PATH="$PATH:${lib.makeBinPath [
imagemagick
ocrmypdf
]}"
exec ${./ocr.sh} "$@"
''