diff --git a/pkgs/development/mobile/xcodeenv/default.nix b/pkgs/development/mobile/xcodeenv/default.nix index 7f834688e63..ad6569d9478 100644 --- a/pkgs/development/mobile/xcodeenv/default.nix +++ b/pkgs/development/mobile/xcodeenv/default.nix @@ -1,8 +1,8 @@ -{stdenv}: +{stdenv, version ? "5.0"}: rec { xcodewrapper = import ./xcodewrapper.nix { - inherit stdenv; + inherit stdenv version; }; buildApp = import ./build-app.nix { diff --git a/pkgs/development/mobile/xcodeenv/xcodewrapper.nix b/pkgs/development/mobile/xcodeenv/xcodewrapper.nix index 7515fcdd121..71e34ee5127 100644 --- a/pkgs/development/mobile/xcodeenv/xcodewrapper.nix +++ b/pkgs/development/mobile/xcodeenv/xcodewrapper.nix @@ -1,4 +1,4 @@ -{stdenv, version ? "5.0"}: +{stdenv, version}: stdenv.mkDerivation { name = "xcode-wrapper-"+version; @@ -16,7 +16,7 @@ stdenv.mkDerivation { ln -s "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs" # Check if we have the xcodebuild version that we want - if [ -z "$($out/bin/xcodebuild -version | grep ${version})" ] + if [ -z "$($out/bin/xcodebuild -version | grep -x 'Xcode ${version}')" ] then echo "We require xcodebuild version: ${version}" exit 1