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