[Nix-dev] gimagereader: new package
Nick Sauce
nick.sauce at monumentmail.com
Sat Sep 13 11:10:10 CEST 2014
gimagereader: new package
---
diff --git \
a/pkgs/applications/graphics/gimagereader/default.nix \
b/pkgs/applications/graphics/gimagereader/default.nix
new file mode 100644
index 0000000..8151555
--- /dev/null
+++ b/pkgs/applications/graphics/gimagereader/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchurl
+, python
+, pythonPackages
+, tesseract
+}:
+
+let
+ version = "0.9.1";
+
+in
+
+pythonPackages.buildPythonPackage rec {
+ name = "gimagereader-${version}";
+
+ src = fetchurl {
+ url = "http://downloads.sourceforge.net/project/gimagereader/" +
+ "${version}/${name}.tar.gz";
+ sha256 =
"1276fd7ec1f8bb7453c5c70e9be6f0c3b8b899cbe6c43b4bf327be6ae85bb86a";
+ };
+
+ patchPhase = ''
+ sed -i "s|^dict_path=.*|dict_path=['${tesseract}/share/tessdata']|" \
+ src/config.py
+ '';
+
+ propagatedBuildInputs = [
+ python
+ pythonPackages.pygtk pythonPackages.pycairo pythonPackages.pygtkspell
+ pythonPackages.pyenchant pythonPackages.pil pythonPackages.pypoppler
+ tesseract
+ ];
+
+ meta = {
+ description = "A simple Gtk front-end to tesseract";
+ homepage = http://sourceforge.net/projects/gimagereader/;
+ license = stdenv.lib.licenses.gpl3;
+ };
+}
diff --git \
a/pkgs/top-level/all-packages.nix \
b/pkgs/top-level/all-packages.nix
index 2a67aae..b2d49e0 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9026,6 +9026,8 @@ let
get_iplayer = callPackage ../applications/misc/get_iplayer {};
+ gimagereader = callPackage ../applications/graphics/gimagereader { };
+
gimp_2_8 = callPackage ../applications/graphics/gimp/2.8.nix {
inherit (gnome) libart_lgpl;
webkit = null;
More information about the nix-dev
mailing list