From 35759160d6a8581a53e671c378dbc8e60b0a6385 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 10 Sep 2021 14:02:48 +0000 Subject: [PATCH] acpica-tools: fix cross The default value of INSTALLFLAGS is "-m 555 -s", -s being the option to run the "strip" program on the installed files. When cross-compiling, we don't have a strip program (we have "${stdenv.cc.targetPrefix}strip"), so install fails. The simplest fix for this is to just remove -s from INSTALLFLAGS, since stdenv will automatically strip all installed binaries at the end anyway. --- pkgs/tools/system/acpica-tools/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index b035ae04215d..4f0ab0297506 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ bison flex ]; + # We can handle stripping ourselves. + INSTALLFLAGS = "-m 555"; + installFlags = [ "PREFIX=${placeholder "out"}" ]; meta = with lib; {