pdfsandwich: init at 0.1.7

This commit is contained in:
Robert Seaton 2019-03-16 16:45:06 -05:00
parent 26073f4a8d
commit 4358c3d216
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ stdenv, ocaml, makeWrapper, fetchsvn, ghostscript, imagemagick, perl, poppler_utils, tesseract, unpaper }:
stdenv.mkDerivation rec {
version = "0.1.7";
pname = "pdfsandwich";
src = fetchsvn {
url = "svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src";
rev = "75";
sha256 = "1420c33divch087xrr61lvyf975bapqkgjqaighl581i69nlzsm6";
};
buildInputs = [ ocaml perl makeWrapper];
installPhase = ''
mkdir -p $out/bin
cp -p pdfsandwich $out/bin
wrapProgram $out/bin/pdfsandwich --prefix PATH : ${stdenv.lib.makeBinPath [ imagemagick ghostscript poppler_utils unpaper tesseract ]}
mkdir -p $out/man/man1
cp -p pdfsandwich.1.gz $out/man/man1
'';
meta = with stdenv.lib; {
description = "OCR tool for scanned PDFs";
homepage = http://www.tobias-elze.de/pdfsandwich/;
license = licenses.gpl2;
maintainers = [ maintainers.rps ];
platforms = platforms.linux;
};
}

View file

@ -4850,6 +4850,8 @@ in
pdfcrack = callPackage ../tools/security/pdfcrack { };
pdfsandwich = callPackage ../tools/typesetting/pdfsandwich { };
pdftag = callPackage ../tools/graphics/pdftag { };
pdf2svg = callPackage ../tools/graphics/pdf2svg { };