From 0a6914a1ffdcde487460f54508409384d09c340a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 23 Nov 2012 22:22:52 +0100 Subject: [PATCH] gocr: fix path to 'wish' in gocr.tcl --- pkgs/applications/graphics/gocr/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/gocr/default.nix b/pkgs/applications/graphics/gocr/default.nix index ec0f9ef835cf..0e8f860c5101 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";