Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcode: add xcodeVer to system #42399

Merged
merged 1 commit into from Jun 26, 2018

Conversation

matthewbauer
Copy link
Member

@matthewbauer matthewbauer commented Jun 22, 2018

This version number controls which xcode version to use when building
cross to iOS.

The default "darwin.xcode" attribute can be referred to to find the "right" xcode to use for your system. It will default to 9.4 (latest) on non-prebuilt targets.

/cc @alexfmpe

@dtzWill
Copy link
Member

dtzWill commented Jun 23, 2018

Ooooo! \o/

xcode_8_1 = requireXcode "8.1" "18xjvfipwzia66gm3r9p770xdd4r375vak7chw5vgqnv9yyjiq2n";
xcode_8_2 = requireXcode "8.2" "13nd1zsfqcp9hwp15hndr0rsbb8rgprrz7zr2ablj4697qca06m2";
xcode_9_1 = requireXcode "9.1" "0ab1403wy84ys3yn26fj78cazhpnslmh3nzzp1wxib3mr1afjvic";
xcode_9_2 = requireXcode "9.2" "1bgfgdp266cbbqf2axcflz92frzvhi0qw0jdkcw6r85kdpc8dj4c";
xcode_9_4 = requireXcode "9.4" "6731381785075602a52489f7ea47ece8f6daf225007ba3ffae1fd59b1c0b5f01";
xcode = xcode_9_4;
}
xcode = self."xcode_${lib.replaceStrings ["."] ["_"] (if hostPlatform.useiOSPrebuilt then hostPlatform.xcodeVer else "9.4")}";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks when evaluating stdenv/cross/default.nix. You cannot rely on hostPlatform there - we need to use crossSystem. /cc @Ericson2314

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm? That's really weird and sounds like a bug in the cross stdenv.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll try to debug what’s happening but I think it’s because hostPlatform is not iOS yet. Does that make sense?

This version number controls which xcode version to use when building
cross to iOS.
@matthewbauer matthewbauer merged commit c16eb04 into NixOS:master Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants