1 { fetchurl, lib, stdenv, lzip, texinfo }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/ocrad/${pname}-${version}.tar.lz";
9 sha256 = "0divffvcaim89g4pvqs8kslbcxi475bcl3b4ynphf284k9zfdgx9";
12 nativeBuildInputs = [ lzip /* unpack */ ];
13 buildInputs = [ texinfo ];
18 description = "Optical character recognition (OCR) program & library";
20 '' GNU Ocrad is an OCR (Optical Character Recognition) program based on
21 a feature extraction method. It reads images in pbm (bitmap), pgm
22 (greyscale) or ppm (color) formats and produces text in byte (8-bit)
25 Also includes a layout analyser able to separate the columns or
26 blocks of text normally found on printed pages.
28 Ocrad can be used as a stand-alone console application, or as a
29 backend to other programs.
32 license = licenses.gpl3Plus;
33 maintainers = with maintainers; [ pSub ];
34 platforms = platforms.unix;
35 mainProgram = "ocrad";