Skip to content

Commit 2cab487

Browse files
r-burnsbjornfor
authored andcommitted
toybox: fix cross-compilation
Toybox expects a native `cc` for producing build-time executables, such as kconfig/conf.
1 parent 2efcf6d commit 2cab487

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkgs/tools/misc/toybox/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
stdenv, lib, fetchFromGitHub, which,
3+
buildPackages,
34
enableStatic ? false,
45
enableMinimal ? false,
56
extraConfig ? ""
@@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
1617
sha256 = "0cgbmv6qk1haj709hjx5q4sl7wgh91i459gzs1203adwc7rvk6jv";
1718
};
1819

20+
depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross
1921
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
2022

2123
postPatch = "patchShebangs .";

0 commit comments

Comments
 (0)