Merge pull request #25190 from obsidiansystems/ios-stdenv-tiny-refactor

crossStdenv on iphone: Just get info from `targetPlatform`

authored by

John Ericson and committed by
GitHub
af6e4c5b 84b1c0c4

+8 -6
+7 -1
pkgs/os-specific/darwin/ios-cross/default.nix
··· 6 6 , stdenv 7 7 , coreutils 8 8 , gnugrep 9 + , targetPlatform 9 10 }: 10 11 11 12 /* As of this writing, known-good prefix/arch/simulator triples: ··· 15 16 * x86_64-apple-darwin14 | x86_64 | true 16 17 */ 17 18 18 - { prefix, arch, simulator ? false }: let 19 + let 20 + 21 + prefix = targetPlatform.config; 22 + inherit (targetPlatform) arch; 23 + simulator = targetPlatform.isiPhoneSimulator or false; 24 + 19 25 sdkType = if simulator then "Simulator" else "OS"; 20 26 21 27 sdkVer = "10.2";
+1 -5
pkgs/stdenv/cross/default.nix
··· 35 35 selfBuild = false; 36 36 stdenv = if crossSystem.useiOSCross or false 37 37 then let 38 - inherit (buildPackages.darwin.ios-cross { 39 - prefix = crossSystem.config; 40 - inherit (crossSystem) arch; 41 - simulator = crossSystem.isiPhoneSimulator or false; }) 42 - cc binutils; 38 + inherit (buildPackages.darwin.ios-cross) cc binutils; 43 39 in buildPackages.makeStdenvCross 44 40 buildPackages.stdenv crossSystem 45 41 binutils cc