Merge pull request #57869 from robertseaton/master
pdfsandwich: init at 0.1.7
This commit is contained in:
commit
0ee682da53
30
pkgs/tools/typesetting/pdfsandwich/default.nix
Normal file
30
pkgs/tools/typesetting/pdfsandwich/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user