2012-11-23 22:22:52 +01:00
|
|
|
{ stdenv, fetchurl, tk }:
|
2007-11-09 14:54:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-11-23 22:18:36 +01:00
|
|
|
name = "gocr-0.49";
|
2010-07-29 20:55:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-14 18:26:46 +01:00
|
|
|
url = http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz;
|
2012-11-23 22:18:36 +01:00
|
|
|
sha256 = "06hpzp7rkkwfr1fvmc8kcfz9v490i9yir7f7imh13gmka0fr6afc";
|
2010-07-29 20:55:16 +02:00
|
|
|
};
|
|
|
|
|
2012-11-23 22:22:52 +01:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's|exec wish|exec ${tk}/bin/wish|' $out/bin/gocr.tcl
|
|
|
|
'';
|
|
|
|
|
2010-07-29 20:55:16 +02:00
|
|
|
meta = {
|
2012-11-23 22:18:36 +01:00
|
|
|
homepage = "http://jocr.sourceforge.net/";
|
2010-07-29 20:55:16 +02:00
|
|
|
description = "GPL Optical Character Recognition";
|
2012-11-23 22:18:36 +01:00
|
|
|
license = "GPLv2";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-07-29 20:55:16 +02:00
|
|
|
};
|
2007-11-09 14:54:02 +01:00
|
|
|
}
|