about summary refs log tree commit diff
path: root/pkgs/applications/graphics/gocr/default.nix
blob: 0f42ac7743e3c7e56f7bdee5f1257a3246932e10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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 ];
  };
}