Loading pkgs/tools/misc/flashrom/default.nix +4 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config installShellFiles ]; buildInputs = [ libftdi1 libusb1 pciutils ] buildInputs = [ libftdi1 libusb1 ] ++ lib.optional (!stdenv.isDarwin) [ pciutils ] ++ lib.optional jlinkSupport libjaylink; postPatch = '' Loading @@ -30,7 +31,8 @@ stdenv.mkDerivation rec { ''; makeFlags = [ "PREFIX=$(out)" "libinstall" ] ++ lib.optional jlinkSupport "CONFIG_JLINK_SPI=yes"; ++ lib.optional jlinkSupport "CONFIG_JLINK_SPI=yes" ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "CONFIG_INTERNAL_X86=no" "CONFIG_INTERNAL_DMI=no" "CONFIG_RAYER_SPI=no" ]; postInstall = '' install -Dm644 util/flashrom_udev.rules $out/lib/udev/rules.d/flashrom.rules Loading @@ -42,6 +44,5 @@ stdenv.mkDerivation rec { license = licenses.gpl2; maintainers = with maintainers; [ fpletz felixsinger ]; platforms = platforms.all; broken = stdenv.isDarwin; # requires DirectHW }; } Loading
pkgs/tools/misc/flashrom/default.nix +4 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config installShellFiles ]; buildInputs = [ libftdi1 libusb1 pciutils ] buildInputs = [ libftdi1 libusb1 ] ++ lib.optional (!stdenv.isDarwin) [ pciutils ] ++ lib.optional jlinkSupport libjaylink; postPatch = '' Loading @@ -30,7 +31,8 @@ stdenv.mkDerivation rec { ''; makeFlags = [ "PREFIX=$(out)" "libinstall" ] ++ lib.optional jlinkSupport "CONFIG_JLINK_SPI=yes"; ++ lib.optional jlinkSupport "CONFIG_JLINK_SPI=yes" ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "CONFIG_INTERNAL_X86=no" "CONFIG_INTERNAL_DMI=no" "CONFIG_RAYER_SPI=no" ]; postInstall = '' install -Dm644 util/flashrom_udev.rules $out/lib/udev/rules.d/flashrom.rules Loading @@ -42,6 +44,5 @@ stdenv.mkDerivation rec { license = licenses.gpl2; maintainers = with maintainers; [ fpletz felixsinger ]; platforms = platforms.all; broken = stdenv.isDarwin; # requires DirectHW }; }