From 2cab4879c1fa563910e4f7a82e3a0ba3285b51b5 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Wed, 23 Dec 2020 18:46:56 -0800 Subject: [PATCH] toybox: fix cross-compilation Toybox expects a native `cc` for producing build-time executables, such as kconfig/conf. --- pkgs/tools/misc/toybox/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/toybox/default.nix b/pkgs/tools/misc/toybox/default.nix index 9b38db5a7273..e7a08877e90f 100644 --- a/pkgs/tools/misc/toybox/default.nix +++ b/pkgs/tools/misc/toybox/default.nix @@ -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 .";