2016-01-03 02:31:38 +00:00
|
|
|
{ stdenv, fetchurl, sane-backends, libX11, gtk, pkgconfig, libusb ? null}:
|
2012-11-26 15:17:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sane-frontends-1.0.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.sane-project.org/pub/sane/sane-frontends-1.0.14/${name}.tar.gz";
|
|
|
|
md5 = "c63bf7b0bb5f530cf3c08715db721cd3";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
|
|
|
'';
|
|
|
|
|
2016-01-03 02:31:38 +00:00
|
|
|
buildInputs = [sane-backends libX11 gtk pkgconfig] ++
|
2012-12-28 18:54:15 +00:00
|
|
|
(if libusb != null then [libusb] else []);
|
2012-11-26 15:17:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.sane-project.org/";
|
|
|
|
description = "Scanner Access Now Easy";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-11-26 15:17:31 +00:00
|
|
|
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2012-11-26 15:17:31 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|