2007-08-08 22:33:36 +02:00
|
|
|
{stdenv, fetchurl, hotplugSupport ? false, libusb ? null,
|
|
|
|
gt68xxFirmware ? null}:
|
2006-01-30 16:29:26 +01:00
|
|
|
|
|
|
|
assert hotplugSupport -> stdenv.system == "i686-linux";
|
2005-11-03 18:20:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-07-31 15:29:02 +02:00
|
|
|
name = "sane-backends-1.0.18";
|
2006-01-30 16:29:26 +01:00
|
|
|
builder = ./builder.sh;
|
2005-11-03 18:20:38 +01:00
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/sane-backends-1.0.18.tar.gz;
|
2006-07-31 15:29:02 +02:00
|
|
|
md5 = "7ca7e2908e24721471de92cf40c75e60";
|
2005-11-03 18:20:38 +01:00
|
|
|
};
|
2006-07-31 15:29:02 +02:00
|
|
|
udevSupport = hotplugSupport;
|
2007-08-08 22:33:36 +02: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 18:20:38 +01:00
|
|
|
}
|