2012-11-24 01:22:52 +04:00
|
|
|
{ stdenv, fetchurl, tk }:
|
2007-11-09 16:54:02 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-13 19:50:12 +04:00
|
|
|
name = "gocr-0.50";
|
2010-07-29 22:55:16 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-13 19:50:12 +04:00
|
|
|
url = "http://www-e.uni-magdeburg.de/jschulen/ocr/${name}.tar.gz";
|
|
|
|
sha256 = "1dgmcpapy7h68d53q2c5d0bpgzgfb2nw2blndnx9qhc7z12149mw";
|
2010-07-29 22:55:16 +04:00
|
|
|
};
|
|
|
|
|
2012-11-24 01:22:52 +04:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's|exec wish|exec ${tk}/bin/wish|' $out/bin/gocr.tcl
|
|
|
|
'';
|
|
|
|
|
2010-07-29 22:55:16 +04:00
|
|
|
meta = {
|
2012-11-24 01:18:36 +04:00
|
|
|
homepage = "http://jocr.sourceforge.net/";
|
2010-07-29 22:55:16 +04:00
|
|
|
description = "GPL Optical Character Recognition";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-11-24 01:18:36 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-07-29 22:55:16 +04:00
|
|
|
};
|
2007-11-09 16:54:02 +03:00
|
|
|
}
|