nixpkgs/pkgs/applications/graphics/gocr/default.nix

24 lines
575 B
Nix
Raw Normal View History

2012-11-23 22:22:52 +01:00
{ stdenv, fetchurl, tk }:
stdenv.mkDerivation rec {
2014-01-13 16:50:12 +01:00
name = "gocr-0.50";
src = fetchurl {
2014-01-13 16:50:12 +01:00
url = "http://www-e.uni-magdeburg.de/jschulen/ocr/${name}.tar.gz";
sha256 = "1dgmcpapy7h68d53q2c5d0bpgzgfb2nw2blndnx9qhc7z12149mw";
};
2012-11-23 22:22:52 +01:00
postInstall = ''
sed -i -e 's|exec wish|exec ${tk}/bin/wish|' $out/bin/gocr.tcl
'';
meta = {
2012-11-23 22:18:36 +01:00
homepage = "http://jocr.sourceforge.net/";
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 ];
};
}