summary refs log tree commit diff
path: root/pkgs/os-specific/linux/busybox
diff options
context:
space:
mode:
authorDerek Kulinski <d@kulinski.us>2019-08-09 22:37:41 -0700
committerDerek Kulinski <d@kulinski.us>2019-08-09 22:49:23 -0700
commit7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb (patch)
treef279154eb3b4a5c9607c08e3c4371039fc5f7fde /pkgs/os-specific/linux/busybox
parentaaf6f0971794d3ea0b7f9ec8717c488793a679d9 (diff)
downloadnixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar.gz
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar.bz2
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar.lz
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar.xz
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.tar.zst
nixpkgs-7e7e26e9b13df64709c3c8c7c1371b484a2ffdcb.zip
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
Diffstat (limited to 'pkgs/os-specific/linux/busybox')
-rw-r--r--pkgs/os-specific/linux/busybox/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/busybox/default.nix b/pkgs/os-specific/linux/busybox/default.nix
index 7270877c52e..f041d2b5042 100644
--- a/pkgs/os-specific/linux/busybox/default.nix
+++ b/pkgs/os-specific/linux/busybox/default.nix
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
 
   patches = [
     ./busybox-in-store.patch
-  ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.targetPlatform) ./clang-cross.patch;
+  ] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
 
   postPatch = "patchShebangs .";