2007-08-08 21:33:36 +01:00
|
|
|
{stdenv, fetchurl, hotplugSupport ? false, libusb ? null,
|
|
|
|
gt68xxFirmware ? null}:
|
2006-01-30 15:29:26 +00:00
|
|
|
|
|
|
|
assert hotplugSupport -> stdenv.system == "i686-linux";
|
2005-11-03 17:20:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-07-31 14:29:02 +01:00
|
|
|
name = "sane-backends-1.0.18";
|
2006-01-30 15:29:26 +00:00
|
|
|
builder = ./builder.sh;
|
2005-11-03 17:20:38 +00:00
|
|
|
src = fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.18/sane-backends-1.0.18.tar.gz;
|
2006-07-31 14:29:02 +01:00
|
|
|
md5 = "7ca7e2908e24721471de92cf40c75e60";
|
2005-11-03 17:20:38 +00:00
|
|
|
};
|
2006-07-31 14:29:02 +01:00
|
|
|
udevSupport = hotplugSupport;
|
2007-08-08 21:33:36 +01:00
|
|
|
|
|
|
|
buildInputs = (if libusb != null then [libusb] else []);
|
|
|
|
|
|
|
|
preInstall = (if gt68xxFirmware != null then
|
|
|
|
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " +
|
|
|
|
(gt68xxFirmware {inherit fetchurl;})+ " \${out}/share/sane/gt68xx/PS1fw.usb "
|
|
|
|
else "");
|
2005-11-03 17:20:38 +00:00
|
|
|
}
|