forked from mirrors/nixpkgs
sanebackends{,Git}: add avahi support
This commit is contained in:
parent
94dbaa7dbf
commit
ffc04a67e3
pkgs/applications/graphics/sane
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, fetchgit, libusb ? null, net_snmp ? null
|
||||
{ stdenv, fetchurl, fetchgit
|
||||
, avahi ? null, libusb ? null, net_snmp ? null
|
||||
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||
, hotplugSupport ? true
|
||||
}:
|
||||
|
@ -19,9 +20,12 @@ stdenv.mkDerivation {
|
|||
|
||||
udevSupport = hotplugSupport;
|
||||
|
||||
buildInputs = [ net_snmp ]
|
||||
buildInputs = [ avahi net_snmp ]
|
||||
++ stdenv.lib.optional (libusb != null) libusb;
|
||||
|
||||
configureFlags = []
|
||||
++ stdenv.lib.optional (avahi != null) "--enable-avahi";
|
||||
|
||||
postInstall = ''
|
||||
if test "$udevSupport" = "1"; then
|
||||
mkdir -p $out/etc/udev/rules.d/
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, fetchurl, libusb ? null, libv4l ? null, net_snmp ? null
|
||||
{ stdenv, fetchurl
|
||||
, avahi ? null, libusb ? null, libv4l ? null, net_snmp ? null
|
||||
, pkgconfig ? null
|
||||
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||
, hotplugSupport ? true
|
||||
|
@ -26,9 +27,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
udevSupport = hotplugSupport;
|
||||
|
||||
configureFlags = stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
||||
configureFlags = []
|
||||
++ stdenv.lib.optional (avahi != null) "--enable-avahi"
|
||||
++ stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
||||
|
||||
buildInputs = [ net_snmp ]
|
||||
buildInputs = [ avahi net_snmp ]
|
||||
++ stdenv.lib.optional (libusb != null) libusb
|
||||
++ stdenv.lib.optional (libv4l != null) libv4l
|
||||
++ stdenv.lib.optional (pkgconfig != null) pkgconfig
|
||||
|
|
Loading…
Reference in a new issue