saneBackends{,Git}: add SNMP support
This commit is contained in:
parent
1d132f38a6
commit
94dbaa7dbf
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, hotplugSupport ? true, libusb ? null
|
{ stdenv, fetchurl, fetchgit, libusb ? null, net_snmp ? null
|
||||||
, gt68xxFirmware ? null, snapscanFirmware ? null
|
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||||
|
, hotplugSupport ? true
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
firmware = gt68xxFirmware { inherit fetchurl; };
|
firmware = gt68xxFirmware { inherit fetchurl; };
|
||||||
@ -18,7 +19,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
udevSupport = hotplugSupport;
|
udevSupport = hotplugSupport;
|
||||||
|
|
||||||
buildInputs = if libusb != null then [libusb] else [];
|
buildInputs = [ net_snmp ]
|
||||||
|
++ stdenv.lib.optional (libusb != null) libusb;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if test "$udevSupport" = "1"; then
|
if test "$udevSupport" = "1"; then
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{ stdenv, fetchurl, hotplugSupport ? true, libusb ? null, libv4l ? null
|
{ stdenv, fetchurl, libusb ? null, libv4l ? null, net_snmp ? null
|
||||||
, pkgconfig ? null, gt68xxFirmware ? null, snapscanFirmware ? null
|
, pkgconfig ? null
|
||||||
|
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||||
|
, hotplugSupport ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert hotplugSupport -> (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux");
|
assert hotplugSupport -> (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux");
|
||||||
@ -26,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
configureFlags = stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
||||||
|
|
||||||
buildInputs = []
|
buildInputs = [ net_snmp ]
|
||||||
++ stdenv.lib.optional (libusb != null) libusb
|
++ stdenv.lib.optional (libusb != null) libusb
|
||||||
++ stdenv.lib.optional (libv4l != null) libv4l
|
++ stdenv.lib.optional (libv4l != null) libv4l
|
||||||
++ stdenv.lib.optional (pkgconfig != null) pkgconfig
|
++ stdenv.lib.optional (pkgconfig != null) pkgconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user