From 2015ab2d5cfde97f19e7abd7d3490376991b0d92 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 12 May 2023 10:07:41 +0800 Subject: [PATCH] flashrom-stable: unbreak darwin --- pkgs/tools/misc/flashrom-stable/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/flashrom-stable/default.nix b/pkgs/tools/misc/flashrom-stable/default.nix index 168b355475b..b943c22d25b 100644 --- a/pkgs/tools/misc/flashrom-stable/default.nix +++ b/pkgs/tools/misc/flashrom-stable/default.nix @@ -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 }; }