acpica-tools: repair installPhase for darwin

Upstream degrades install to cp which is incompatible with -m 555 option.
This change ensures INSTALLFLAGS is not applied on darwin.
This commit is contained in:
Semion Nadezhdin 2022-07-07 17:01:16 +03:00
parent 3014367d9e
commit ab2bb95249

View file

@ -32,7 +32,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# We can handle stripping ourselves.
INSTALLFLAGS = "-m 555";
# Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected.
INSTALLFLAGS = lib.optionals (!stdenv.isDarwin) "-m 555";
installFlags = [ "PREFIX=${placeholder "out"}" ];
@ -41,6 +42,6 @@ stdenv.mkDerivation rec {
description = "ACPICA Tools";
license = with licenses; [ iasl gpl2Only bsd3 ];
maintainers = with maintainers; [ tadfisher ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}