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";
15 nativeBuildInputs = [ makeWrapper ocaml perl ];
18 cp -p pdfsandwich $out/bin
19 wrapProgram $out/bin/pdfsandwich --prefix PATH : ${lib.makeBinPath [ imagemagick ghostscript poppler_utils unpaper tesseract ]}
21 mkdir -p $out/man/man1
22 cp -p pdfsandwich.1.gz $out/man/man1
26 description = "OCR tool for scanned PDFs";
27 homepage = "http://www.tobias-elze.de/pdfsandwich/";
28 license = licenses.gpl2Plus;
29 maintainers = [ maintainers.rps ];
30 platforms = platforms.linux;
31 mainProgram = "pdfsandwich";