diff options
author | Semion Nadezhdin <me@sg-studio.ru> | 2022-07-07 17:01:16 +0300 |
---|---|---|
committer | Semion Nadezhdin <me@sg-studio.ru> | 2022-07-07 17:02:13 +0300 |
commit | ab2bb95249236f6afe712926b395c1ac65a93447 (patch) | |
tree | dc0aeae586652c7fe92dfcb29f778d807bded3f7 /pkgs/tools/system/acpica-tools | |
parent | 3014367d9eda9f1337adbbf8bac4899016638564 (diff) |
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.
Diffstat (limited to 'pkgs/tools/system/acpica-tools')
-rw-r--r-- | pkgs/tools/system/acpica-tools/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index b34302bde5805..bf42608411a83 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; }; } |