openfpgaloader: add optional dependencies

This avoids the following missing features:

    hidapi-libusb not found: cmsis_dap support disabled
    zlib library not found: can't flash intel/altera devices
This commit is contained in:
Benjamin Koch 2022-07-02 17:41:31 +02:00
parent d9d051d6dd
commit c00e3a79c1

View file

@ -6,6 +6,8 @@
, libftdi1
, libusb1
, udev
, hidapi
, zlib
}:
stdenv.mkDerivation rec {
@ -25,6 +27,8 @@ stdenv.mkDerivation rec {
libftdi1
libusb1
udev
hidapi
zlib
];
meta = with lib; {