- Added xcodeenv: experimental support to build iOS apps through Nix

- Moved mobile development tools into a separate folder
This commit is contained in:
Sander van der Burg
2013-01-07 16:52:42 +01:00
parent a547de1ecb
commit 5b0ca88d97
26 changed files with 167 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
{stdenv, xcodewrapper}:
{name, app, device ? "iPhone", baseDir ? ""}:
stdenv.mkDerivation {
inherit name;
buildCommand = ''
ensureDir $out/bin
cat > $out/bin/run-test-simulator << "EOF"
#! ${stdenv.shell} -e
cd ${app}/${baseDir}/${name}.app
"$(readlink "${xcodewrapper}/bin/iPhone Simulator")" -SimulateApplication ./${name} -SimulateDevice '${device}'
EOF
chmod +x $out/bin/run-test-simulator
'';
}