uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
70
pkgs/applications/misc/gImageReader/default.nix
Normal file
70
pkgs/applications/misc/gImageReader/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libuuid
|
||||
, sane-backends, podofo, libjpeg, djvulibre, libxmlxx3, libzip, tesseract
|
||||
, intltool, poppler, json-glib
|
||||
, ninja
|
||||
, python3
|
||||
|
||||
# Gtk deps
|
||||
# upstream gImagereader supports Qt too
|
||||
, gobject-introspection, wrapGAppsHook
|
||||
, gtkmm3, gtksourceview3, gtksourceviewmm, gtkspell3, gtkspellmm, cairomm
|
||||
}:
|
||||
|
||||
let
|
||||
variant = "gtk";
|
||||
pythonEnv = python3.withPackages( ps: with ps;[ pygobject3 ] );
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gImageReader";
|
||||
version = "3.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner= "manisandro";
|
||||
repo = "gImageReader";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-lJ4wPLxVN3NERnru8vLreiWMEUip6xeCXAfoT8DcfiQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake ninja
|
||||
intltool
|
||||
pkg-config
|
||||
pythonEnv
|
||||
|
||||
# Gtk specific
|
||||
wrapGAppsHook
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libxmlxx3
|
||||
libzip
|
||||
libuuid
|
||||
sane-backends
|
||||
podofo
|
||||
libjpeg
|
||||
djvulibre
|
||||
tesseract
|
||||
poppler
|
||||
|
||||
# Gtk specific
|
||||
gtkmm3
|
||||
gtkspell3
|
||||
gtkspellmm
|
||||
gtksourceview3
|
||||
gtksourceviewmm
|
||||
cairomm
|
||||
json-glib
|
||||
];
|
||||
|
||||
# interface type can be where <type> is either gtk, qt5, qt4
|
||||
cmakeFlags = [ "-DINTERFACE_TYPE=${variant}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple Gtk/Qt front-end to tesseract-ocr";
|
||||
homepage = "https://github.com/manisandro/gImageReader";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [teto];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue