2020-03-07 12:19:00 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, docbook_xsl
|
|
|
|
, sane-backends
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, valgrind
|
|
|
|
, doxygen
|
|
|
|
, cunit
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libinsane";
|
2020-09-24 09:18:36 +01:00
|
|
|
version = "1.0.7";
|
2020-03-07 12:19:00 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
repo = "libinsane";
|
|
|
|
group = "World";
|
|
|
|
owner = "OpenPaperwork";
|
|
|
|
rev = version;
|
2020-09-24 09:18:36 +01:00
|
|
|
sha256 = "03r6niyzfahnlpvhn68h59i6926ciwz88krqbf0akd9f42y9zf2k";
|
2020-03-07 12:19:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson pkg-config ninja doxygen gtk-doc docbook_xsl gobject-introspection vala ];
|
|
|
|
|
|
|
|
buildInputs = [ sane-backends glib ];
|
|
|
|
|
|
|
|
checkInputs = [ cunit valgrind ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Crossplatform access to image scanners (paper eaters only)";
|
|
|
|
homepage = "https://openpaper.work/en/projects/";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.symphorien ];
|
|
|
|
};
|
|
|
|
}
|