saneBackends: simplify buildInputs
This commit is contained in:
parent
d91765d2e0
commit
d398926993
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, avahi ? null, libusb ? null, libv4l ? null, net_snmp ? null
|
, avahi, libusb, libv4l, net_snmp
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, gt68xxFirmware ? null, snapscanFirmware ? null
|
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||||
, hotplugSupport ? true
|
, hotplugSupport ? true
|
||||||
@ -25,10 +25,8 @@ stdenv.mkDerivation {
|
|||||||
++ stdenv.lib.optional (avahi != null) "--enable-avahi"
|
++ stdenv.lib.optional (avahi != null) "--enable-avahi"
|
||||||
++ stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
++ stdenv.lib.optional (libusb != null) "--enable-libusb_1_0";
|
||||||
|
|
||||||
buildInputs = [ avahi net_snmp pkgconfig ]
|
buildInputs = [ avahi libusb libv4l net_snmp ];
|
||||||
++ stdenv.lib.optional (libusb != null) libusb
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
++ stdenv.lib.optional (libv4l != null) libv4l
|
|
||||||
;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if test "$udevSupport" = "1"; then
|
if test "$udevSupport" = "1"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user