git.iko.soy/typeable/nixpkgs
on master help sign in
busybox: apply clang-cross patch when host is different than build system.

It looks like the original comparrision was incorrect: host platform - system on which the binary will run target platform - system for which compiler generates code (used with compilers) build platform - system on which the build is invoked see: https://nixos.org/nixpkgs/manual/#sec-cross-platform-parameters This change allows to cross compile busybox on OS X

commit7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb authorDerek Kulinski <d@kulinski.us> dateFri 9 Aug 2019, 22:37 (7 years ago) parentaaf6f09
1 file changed+1−1
pkgs/os-specific/linux/busybox/default.nix+1−1
pkgs/os-specific/linux/busybox/default.nix+1−1
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
4747
4848 patches = [
4949 ./busybox-in-store.patch
50− ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.targetPlatform) ./clang-cross.patch;
50+ ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
5151
5252 postPatch = "patchShebangs .";
5353