flashrom: don't use lib.optional with a list

This commit is contained in:
figsoda 2023-05-29 19:40:16 -04:00
parent 8d91de5145
commit 2014fdae3d

View File

@ -1,5 +1,4 @@
{ fetchurl
, fetchpatch
, stdenv
, installShellFiles
, lib
@ -22,7 +21,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ libftdi1 libusb1 ]
++ lib.optional (!stdenv.isDarwin) [ pciutils ]
++ lib.optionals (!stdenv.isDarwin) [ pciutils ]
++ lib.optional jlinkSupport libjaylink;
postPatch = ''