5b0ca88d97
- Moved mobile development tools into a separate folder
25 lines
658 B
Nix
25 lines
658 B
Nix
{stdenv}:
|
|
|
|
let
|
|
version = "4.5.2";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "xcode-wrapper-"+version;
|
|
buildCommand = ''
|
|
ensureDir $out/bin
|
|
cd $out/bin
|
|
ln -s /usr/bin/xcode-select
|
|
ln -s /usr/bin/xcodebuild
|
|
ln -s /usr/bin/xcrun
|
|
ln -s /usr/bin/security
|
|
ln -s "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator"
|
|
|
|
# Check if we have the xcodebuild version that we want
|
|
if [ -z "$($out/bin/xcodebuild -version | grep ${version})" ]
|
|
then
|
|
echo "We require xcodebuild version: ${version}"
|
|
exit 1
|
|
fi
|
|
'';
|
|
}
|