1 { lib, stdenv, ocaml, makeWrapper, fetchsvn, ghostscript, imagemagick, perl, poppler_utils, tesseract, unpaper }:
8 url = "svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src";
10 sha256 = "1420c33divch087xrr61lvyf975bapqkgjqaighl581i69nlzsm6";
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ ocaml perl ];
17 cp -p pdfsandwich $out/bin
18 wrapProgram $out/bin/pdfsandwich --prefix PATH : ${lib.makeBinPath [ imagemagick ghostscript poppler_utils unpaper tesseract ]}
20 mkdir -p $out/man/man1
21 cp -p pdfsandwich.1.gz $out/man/man1
25 description = "OCR tool for scanned PDFs";
26 homepage = "http://www.tobias-elze.de/pdfsandwich/";
27 license = licenses.gpl2;
28 maintainers = [ maintainers.rps ];
29 platforms = platforms.linux;