mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
pdfsandwich: init at 0.1.7
This commit is contained in:
parent
26073f4a8d
commit
4358c3d216
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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user