openocd: libgpiod is supported only on linux (#143652)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Ilya Kharin 2021-10-29 18:12:53 +04:00 committed by GitHub
parent 78181768e6
commit c8f8adc5ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ hidapi libftdi1 libusb1 libgpiod ];
buildInputs = [ hidapi libftdi1 libusb1 ]
++ lib.optional stdenv.isLinux libgpiod;
configureFlags = [
"--enable-jtag_vpi"