flashrom-stable: unbreak darwin

This commit is contained in:
Jiajie Chen 2023-05-12 10:07:41 +08:00
parent 2472f4eaee
commit 2015ab2d5c

View File

@ -27,13 +27,15 @@ stdenv.mkDerivation rec {
buildInputs = [
libftdi1
libgpiod
libjaylink
libusb1
] ++ lib.optionals (!stdenv.isDarwin) [
libgpiod
pciutils
];
makeFlags = [ "PREFIX=$(out)" "libinstall" ];
makeFlags = [ "PREFIX=$(out)" "libinstall" ] ++ lib.optionals stdenv.isDarwin [ "CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no" ]
++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "CONFIG_INTERNAL_X86=no" "CONFIG_INTERNAL_DMI=no" "CONFIG_RAYER_SPI=0" ];
meta = with lib; {
homepage = "https://www.flashrom.org";
@ -41,6 +43,5 @@ stdenv.mkDerivation rec {
license = with licenses; [ gpl2 gpl2Plus ];
maintainers = with maintainers; [ felixsinger ];
platforms = platforms.all;
broken = stdenv.isDarwin; # requires DirectHW
};
}