Merge pull request #57869 from robertseaton/master

pdfsandwich: init at 0.1.7
This commit is contained in:
Elis Hirwing 2019-03-24 23:57:38 +01:00 committed by GitHub
commit 0ee682da53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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