mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: moar ocr
This commit is contained in:
parent
71383c5b5b
commit
e9b291078d
3 changed files with 69 additions and 63 deletions
13
packages/ocr/default.nix
Normal file
13
packages/ocr/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
writeShellScriptBin,
|
||||
imagemagick,
|
||||
ocrmypdf,
|
||||
}:
|
||||
writeShellScriptBin "ocr" ''
|
||||
export PATH="$PATH:${lib.makeBinPath [
|
||||
imagemagick
|
||||
ocrmypdf
|
||||
]}"
|
||||
exec ${./ocr.sh} "$@"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue