diff options
author | Sander van der Burg <sander@conference-compass.com> | 2013-02-12 11:35:21 +0100 |
---|---|---|
committer | Sander van der Burg <sander@conference-compass.com> | 2013-02-12 11:35:21 +0100 |
commit | 5d6ffdb623f1f5d1a0e8e0007016faea65369258 (patch) | |
tree | 62054fef69fa37682fcf85912dc08d00b85e36f9 /pkgs/development/mobile/xcodeenv | |
parent | ec9c096e25b6403a9b8a0f217ada3870c1cad556 (diff) |
xcodeenv: Allow app names with with spaces in them
Diffstat (limited to 'pkgs/development/mobile/xcodeenv')
-rw-r--r-- | pkgs/development/mobile/xcodeenv/simulate-app.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/mobile/xcodeenv/simulate-app.nix b/pkgs/development/mobile/xcodeenv/simulate-app.nix index 456732abe1f4..e3eff458d272 100644 --- a/pkgs/development/mobile/xcodeenv/simulate-app.nix +++ b/pkgs/development/mobile/xcodeenv/simulate-app.nix @@ -2,14 +2,14 @@ {name, app, device ? "iPhone", baseDir ? ""}: stdenv.mkDerivation { - inherit name; + name = stdenv.lib.replaceChars [" "] [""] 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}' + cd '${app}/${baseDir}/${name}.app' + "$(readlink "${xcodewrapper}/bin/iPhone Simulator")" -SimulateApplication './${name}' -SimulateDevice '${device}' EOF chmod +x $out/bin/run-test-simulator ''; |