Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
lzip,
|
|
texinfo,
|
|
libpng,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ocrad";
|
|
version = "0.29";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/ocrad/ocrad-${finalAttrs.version}.tar.lz";
|
|
hash = "sha256-ESAMxrC3uhaISnLcy1jvaU96omzSsgQeVVWA8GTS2ek=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
lzip # unpack
|
|
];
|
|
|
|
buildInputs = [
|
|
texinfo
|
|
libpng
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Optical character recognition (OCR) program & library";
|
|
longDescription = ''
|
|
GNU Ocrad is an OCR (Optical Character Recognition) program based on
|
|
a feature extraction method. It reads images in pbm (bitmap), pgm
|
|
(greyscale) or ppm (color) formats and produces text in byte (8-bit)
|
|
or UTF-8 formats.
|
|
|
|
Also includes a layout analyser able to separate the columns or
|
|
blocks of text normally found on printed pages.
|
|
|
|
Ocrad can be used as a stand-alone console application, or as a
|
|
backend to other programs.
|
|
'';
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ pSub ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "ocrad";
|
|
};
|
|
})
|