flashrom: unbreak darwin
This commit is contained in:
parent
6dee6324c7
commit
2472f4eaee
|
@ -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 = ''
|
||||
|
@ -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
|
||||
|
@ -42,6 +44,5 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ fpletz felixsinger ];
|
||||
platforms = platforms.all;
|
||||
broken = stdenv.isDarwin; # requires DirectHW
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue