Skip to content

Commit

Permalink
toybox: fix cross-compilation
Browse files Browse the repository at this point in the history
Toybox expects a native `cc` for producing
build-time executables, such as kconfig/conf.
  • Loading branch information
r-burns authored and bjornfor committed Dec 25, 2020
1 parent 2efcf6d commit 2cab487
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/tools/misc/toybox/default.nix
@@ -1,5 +1,6 @@
{
stdenv, lib, fetchFromGitHub, which,
buildPackages,
enableStatic ? false,
enableMinimal ? false,
extraConfig ? ""
Expand All @@ -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 .";
Expand Down

0 comments on commit 2cab487

Please sign in to comment.