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