From 12cc39514eb10988058a0fefef14634e60f74516 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 19 Nov 2016 10:29:01 -0500 Subject: [PATCH] ios-cross: Document known prefixes --- pkgs/os-specific/darwin/ios-cross/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/darwin/ios-cross/default.nix b/pkgs/os-specific/darwin/ios-cross/default.nix index cd4aed88cdd4..1d26a8b350be 100644 --- a/pkgs/os-specific/darwin/ios-cross/default.nix +++ b/pkgs/os-specific/darwin/ios-cross/default.nix @@ -6,7 +6,16 @@ , stdenv , coreutils , gnugrep -}: { prefix, arch, simulator ? false }: let +}: + +/* As of this writing, known-good prefix/arch/simulator triples: + * aarch64-apple-darwin14 | arm64 | false + * arm-apple-darwin10 | armv7 | false + * i386-apple-darwin11 | i386 | true + * x86_64-apple-darwin14 | x86_64 | true + */ + +{ prefix, arch, simulator ? false }: let sdkType = if simulator then "Simulator" else "OS"; sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhone${sdkType}.platform/Developer/SDKs/iPhone${sdkType}10.0.sdk";