From ab2bb95249236f6afe712926b395c1ac65a93447 Mon Sep 17 00:00:00 2001 From: Semion Nadezhdin Date: Thu, 7 Jul 2022 17:01:16 +0300 Subject: [PATCH] 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. --- pkgs/tools/system/acpica-tools/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index b34302bde58..bf42608411a 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -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; }; }