de87138b9a
Also updates xcbuild version. This changes the raw string expressions into nix expressions that are then converted into json by builtins.toJSON. Then, converted to Plist XML by Apple's plutil. Sadly, xcbuild does not support using raw JSON but Apple's plutil does so we just convert the file from JSON to XML using Apple's plutil. The result is not ideal but it looks like all OS X systems have working plutil's. - set mac version to 10.10 - add setup hook.
18 lines
315 B
Bash
18 lines
315 B
Bash
xcbuildPhase() {
|
|
runHook preConfigure
|
|
|
|
echo "running xcodebuild"
|
|
|
|
xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE"
|
|
|
|
runHook postConfigure
|
|
}
|
|
|
|
if [ -z "$dontUseXcbuild" -a -z "$configurePhase" ]; then
|
|
configurePhase=xcbuildPhase
|
|
fi
|
|
|
|
# if [ -d "*.xcodeproj" ]; then
|
|
# buildPhase=xcbuildPhase
|
|
# fi
|