mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
flashrom-stable: unbreak darwin
This commit is contained in:
parent
2472f4eaee
commit
2015ab2d5c
@ -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
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user