toybox: fix cross-compilation

Toybox expects a native `cc` for producing
build-time executables, such as kconfig/conf.
This commit is contained in:
Ryan Burns 2020-12-23 18:46:56 -08:00 committed by Bjørn Forsman
parent 2efcf6dc26
commit 2cab4879c1

View file

@ -1,5 +1,6 @@
{
stdenv, lib, fetchFromGitHub, which,
buildPackages,
enableStatic ? false,
enableMinimal ? false,
extraConfig ? ""
@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
sha256 = "0cgbmv6qk1haj709hjx5q4sl7wgh91i459gzs1203adwc7rvk6jv";
};
depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
postPatch = "patchShebangs .";