diff options
Diffstat (limited to 'pkgs/development/mobile/titaniumenv/build-app.nix')
-rw-r--r-- | pkgs/development/mobile/titaniumenv/build-app.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/mobile/titaniumenv/build-app.nix b/pkgs/development/mobile/titaniumenv/build-app.nix index b3c8d380819..9e19afb2442 100644 --- a/pkgs/development/mobile/titaniumenv/build-app.nix +++ b/pkgs/development/mobile/titaniumenv/build-app.nix @@ -40,8 +40,7 @@ in stdenv.mkDerivation ({ name = stdenv.lib.replaceChars [" "] [""] name; - buildInputs = [ nodejs titanium alloy python which file jdk ] - ++ stdenv.lib.optional (target == "iphone") xcodewrapper; + buildInputs = [ nodejs titanium alloy python which file jdk ]; buildPhase = '' ${preBuild} @@ -91,6 +90,10 @@ stdenv.mkDerivation ({ ''} '' else if target == "iphone" then '' + # Be sure that the Xcode wrapper has priority over everything else. + # When using buildInputs this does not seem to be the case. + export PATH=${xcodewrapper}/bin:$PATH + # Configure the path to Xcode titanium --config-file $TMPDIR/config.json --no-colors config paths.xcode ${xcodeBaseDir} |