flashrom-stable: unbreak darwin
This commit is contained in:
parent
2472f4eaee
commit
2015ab2d5c
|
@ -27,13 +27,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libftdi1
|
libftdi1
|
||||||
libgpiod
|
|
||||||
libjaylink
|
libjaylink
|
||||||
libusb1
|
libusb1
|
||||||
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||||
|
libgpiod
|
||||||
pciutils
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://www.flashrom.org";
|
homepage = "https://www.flashrom.org";
|
||||||
|
@ -41,6 +43,5 @@ stdenv.mkDerivation rec {
|
||||||
license = with licenses; [ gpl2 gpl2Plus ];
|
license = with licenses; [ gpl2 gpl2Plus ];
|
||||||
maintainers = with maintainers; [ felixsinger ];
|
maintainers = with maintainers; [ felixsinger ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
broken = stdenv.isDarwin; # requires DirectHW
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue