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