mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
24 lines
575 B
Nix
24 lines
575 B
Nix
{ stdenv, fetchurl, tk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gocr-0.49";
|
|
|
|
src = fetchurl {
|
|
url = http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz;
|
|
sha256 = "06hpzp7rkkwfr1fvmc8kcfz9v490i9yir7f7imh13gmka0fr6afc";
|
|
};
|
|
|
|
postInstall = ''
|
|
sed -i -e 's|exec wish|exec ${tk}/bin/wish|' $out/bin/gocr.tcl
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://jocr.sourceforge.net/";
|
|
description = "GPL Optical Character Recognition";
|
|
license = "GPLv2";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|