git.iko.soy/typeable/nixpkgs
on master help sign in
toybox: fix cross-compilation

Toybox expects a native `cc` for producing build-time executables, such as kconfig/conf.

commit2cab4879c1fa563910e4f7a82e3a0ba3285b51b5 authorRyan Burns <rtburns@protonmail.com> dateWed 23 Dec 2020, 18:46 (6 years ago) parent2efcf6d
1 file changed+2
pkgs/tools/misc/toybox/default.nix+2
pkgs/tools/misc/toybox/default.nix+2
@@ -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 .";