summary refs log tree commit diff
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-24 18:04:07 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-24 18:04:07 +0000
commit626f6546022656c3cb9fca0810ac54648d430c2c (patch)
tree66218ef8c31c3e24708b92aa073f62e7fb665f0c
parent3ae0255bbd52bb10596a851d9f915aa5510c70f8 (diff)
downloadnixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar.gz
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar.bz2
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar.lz
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar.xz
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.tar.zst
nixlib-626f6546022656c3cb9fca0810ac54648d430c2c.zip
Adding tesseract, an OCR engine I just found but never tried.
svn path=/nixpkgs/trunk/; revision=26952
-rw-r--r--pkgs/applications/graphics/tesseract/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/tesseract/default.nix b/pkgs/applications/graphics/tesseract/default.nix
new file mode 100644
index 000000000000..80e0514d38fb
--- /dev/null
+++ b/pkgs/applications/graphics/tesseract/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, libtiff }:
+
+stdenv.mkDerivation {
+  name = "tesseract-3.0.0";
+
+  src = fetchurl {
+    url = http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz;
+    sha256 = "111r9hy1rcs2ch4kdi9dkzwch3xg38vv379sf3cjpkswkigx8clw";
+  };
+
+  buildInputs = [ libtiff ];
+
+  meta = {
+    description = "OCR engine";
+    homepage = http://code.google.com/p/tesseract-ocr/;
+    license = "Apache2.0";
+    maintainers = with stdenv.lib.maintainers; [viric];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f57f178e3423..dab14d72becb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6862,6 +6862,8 @@ let
     withKde = getConfig [ "taskJuggler" "kde" ] false;
   };
 
+  tesseract = callPackage ../applications/graphics/tesseract { };
+
   thinkingRock = callPackage ../applications/misc/thinking-rock { };
 
   thunderbird = thunderbird3;