mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
toybox: fix cross-compilation
Toybox expects a native `cc` for producing build-time executables, such as kconfig/conf.
This commit is contained in:
parent
2efcf6dc26
commit
2cab4879c1
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
stdenv, lib, fetchFromGitHub, which,
|
stdenv, lib, fetchFromGitHub, which,
|
||||||
|
buildPackages,
|
||||||
enableStatic ? false,
|
enableStatic ? false,
|
||||||
enableMinimal ? false,
|
enableMinimal ? false,
|
||||||
extraConfig ? ""
|
extraConfig ? ""
|
||||||
|
@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0cgbmv6qk1haj709hjx5q4sl7wgh91i459gzs1203adwc7rvk6jv";
|
sha256 = "0cgbmv6qk1haj709hjx5q4sl7wgh91i459gzs1203adwc7rvk6jv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross
|
||||||
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
|
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||||
|
|
||||||
postPatch = "patchShebangs .";
|
postPatch = "patchShebangs .";
|
||||||
|
|
Loading…
Reference in a new issue