2007-08-09 00:33:36 +04:00
|
|
|
{stdenv, fetchurl, saneBackends, saneFrontends,
|
|
|
|
libX11, gtk, pkgconfig, libusb ? null}:
|
|
|
|
stdenv.mkDerivation {
|
2009-12-25 02:19:53 +03:00
|
|
|
name = "xsane-0.996";
|
2007-08-09 00:33:36 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-12-25 02:19:53 +03:00
|
|
|
url = ftp://ftp.sane-project.org/pub/sane/xsane/xsane-0.996.tar.gz;
|
|
|
|
sha256 = "0zddar0y76iv4c55qzfmnm819z5hzisr2jwjb60x36v6bdrhcjx5";
|
2007-08-09 00:33:36 +04:00
|
|
|
};
|
|
|
|
|
2010-01-15 11:59:45 +03:00
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/xsane-back-gtk.c
|
|
|
|
'';
|
|
|
|
|
2007-08-09 00:33:36 +04:00
|
|
|
buildInputs = [saneBackends saneFrontends libX11 gtk pkgconfig ] ++
|
|
|
|
(if (libusb != null) then [libusb] else []);
|
2010-09-28 09:39:39 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.sane-project.org/;
|
|
|
|
};
|
2007-08-09 00:33:36 +04:00
|
|
|
}
|