Author: viric
Date: Sun Apr 24 18:04:07 2011
New Revision: 26952
URL: https://svn.nixos.org/websvn/nix/?rev=26952&sc=1

Log:
Adding tesseract, an OCR engine I just found but never tried.

Added:
   nixpkgs/trunk/pkgs/applications/graphics/tesseract/
   nixpkgs/trunk/pkgs/applications/graphics/tesseract/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/applications/graphics/tesseract/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/graphics/tesseract/default.nix      Sun Apr 
24 18:04:07 2011        (r26952)
@@ -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;
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Apr 24 15:30:30 
2011        (r26951)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Apr 24 18:04:07 
2011        (r26952)
@@ -6862,6 +6862,8 @@
     withKde = getConfig [ "taskJuggler" "kde" ] false;
   };
 
+  tesseract = callPackage ../applications/graphics/tesseract { };
+
   thinkingRock = callPackage ../applications/misc/thinking-rock { };
 
   thunderbird = thunderbird3;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to