1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libuuid
2 , sane-backends, podofo, libjpeg, djvulibre, libxmlxx3, libzip, tesseract
3 , intltool, poppler, json-glib
8 # upstream gImagereader supports Qt too
9 , gobject-introspection, wrapGAppsHook3
10 , gtkmm3, gtksourceview3, gtksourceviewmm, gtkspell3, gtkspellmm, cairomm
15 pythonEnv = python3.withPackages( ps: with ps;[ pygobject3 ] );
17 stdenv.mkDerivation rec {
18 pname = "gImageReader";
21 src = fetchFromGitHub {
23 repo = "gImageReader";
25 sha256 = "sha256-yBkVeufRRoSAc20/8mV39widBPloHFz12K7B4Y9xiWg=";
60 # interface type can be where <type> is either gtk, qt5, qt4
61 cmakeFlags = [ "-DINTERFACE_TYPE=${variant}" ];
64 description = "Simple Gtk/Qt front-end to tesseract-ocr";
65 mainProgram = "gimagereader-gtk";
66 homepage = "https://github.com/manisandro/gImageReader";
67 license = licenses.gpl3Plus;
68 maintainers = with maintainers; [teto];
69 platforms = platforms.linux;