summary refs log tree commit diff
path: root/pkgs/applications/graphics/gocr
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics/gocr')
-rw-r--r--pkgs/applications/graphics/gocr/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/gocr/default.nix b/pkgs/applications/graphics/gocr/default.nix
index ec0f9ef835c..0e8f860c510 100644
--- a/pkgs/applications/graphics/gocr/default.nix
+++ b/pkgs/applications/graphics/gocr/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, tk }:
 
 stdenv.mkDerivation rec {
   name = "gocr-0.49";
@@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
     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";