diff options
author | Andrew Childs <lorne@cons.org.nz> | 2020-11-19 17:16:34 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-05-17 00:27:00 +0900 |
commit | aa3361326b8823e5726df90b495d96772b3c0702 (patch) | |
tree | bb1e8571598752acccb6e7dc860e136dbb4c6795 | |
parent | 24a378c070a1cebf63b2308f4ede6bdaf1126487 (diff) | |
download | nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar.gz nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar.bz2 nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar.lz nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar.xz nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.tar.zst nixpkgs-aa3361326b8823e5726df90b495d96772b3c0702.zip |
darwin.adv_cmds: fix cross compilation
-rw-r--r-- | pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix index b4c28e23c14..2ca2d061591 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix @@ -1,4 +1,4 @@ -{ lib, appleDerivation, fetchzip, bsdmake, perl, flex, bison +{ lib, stdenv, buildPackages, appleDerivation, fetchzip, bsdmake, perl, flex, bison }: # this derivation sucks @@ -16,6 +16,7 @@ let recentAdvCmds = fetchzip { }; in appleDerivation { + depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ bsdmake perl bison flex ]; buildInputs = [ flex ]; @@ -61,7 +62,7 @@ in appleDerivation { bsdmake -C usr-share-locale.tproj - clang ${recentAdvCmds}/ps/*.c -o ps + ${stdenv.cc.targetPrefix}clang ${recentAdvCmds}/ps/*.c -o ps ''; installPhase = '' |