Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkgs/os-specific/darwin/ios-cross/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, stdenv
, coreutils
, gnugrep
, targetPlatform
}:

/* As of this writing, known-good prefix/arch/simulator triples:
Expand All @@ -15,7 +16,12 @@
* x86_64-apple-darwin14 | x86_64 | true
*/

{ prefix, arch, simulator ? false }: let
let

prefix = targetPlatform.config;
inherit (targetPlatform) arch;
simulator = targetPlatform.isiPhoneSimulator or false;

sdkType = if simulator then "Simulator" else "OS";

sdkVer = "10.2";
Expand Down
6 changes: 1 addition & 5 deletions pkgs/stdenv/cross/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ in bootStages ++ [
selfBuild = false;
stdenv = if crossSystem.useiOSCross or false
then let
inherit (buildPackages.darwin.ios-cross {
prefix = crossSystem.config;
inherit (crossSystem) arch;
simulator = crossSystem.isiPhoneSimulator or false; })
cc binutils;
inherit (buildPackages.darwin.ios-cross) cc binutils;
in buildPackages.makeStdenvCross
buildPackages.stdenv crossSystem
binutils cc
Expand Down