···11-diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
22---- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
33-+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
44-@@ -1018,12 +1033,16 @@
11+diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
22+index 30f27d5..eb178a5 100644
33+--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
44++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
55+@@ -1018,12 +1018,15 @@ class XcodeSettings(object):
56 # Since the value returned by this function is only used when ARCHS is not
67 # set, then on iOS we return "i386", as the default xcode project generator
78 # does not set ARCHS if it is not set in the .gyp file.
89- if self.isIOS:
99-+
1010+ try:
1111+ if self.isIOS:
1212+ return 'i386'
+10-13
pkgs/development/web/nodejs/no-xcode.patch
···11-diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
22---- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
33-+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
44-@@ -302,10 +302,17 @@
11+diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
22+index c002b11..eeb0400 100644
33+--- a/tools/gyp/pylib/gyp/xcode_emulation.py
44++++ b/tools/gyp/pylib/gyp/xcode_emulation.py
55+@@ -446,10 +446,16 @@ class XcodeSettings(object):
5667 def _XcodeSdkPath(self, sdk_root):
78 if sdk_root not in XcodeSettings._sdk_path_cache:
···1920+ # the user is probably on a CLT-only system, where there
2021+ # is no valid SDK root
2122+ XcodeSettings._sdk_path_cache[sdk_root] = None
2222-+
2323 return XcodeSettings._sdk_path_cache[sdk_root]
24242525 def _AppendPlatformVersionMinFlags(self, lst):
2626-@@ -420,10 +427,12 @@
2626+@@ -572,10 +578,11 @@ class XcodeSettings(object):
2727 framework_root = sdk_root
2828 else:
2929 framework_root = ''
···3131- framework_dirs = config.get('mac_framework_dirs', [])
3232- for directory in framework_dirs:
3333- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
3434-+
3534+ if 'SDKROOT' in self._Settings():
3635+ config = self.spec['configurations'][self.configname]
3736+ framework_dirs = config.get('mac_framework_dirs', [])
···40394140 self.configname = None
4241 return cflags
4343-@@ -673,10 +682,12 @@
4242+@@ -826,10 +833,11 @@ class XcodeSettings(object):
4443 sdk_root = self._SdkPath()
4544 if not sdk_root:
4645 sdk_root = ''
···4847- framework_dirs = config.get('mac_framework_dirs', [])
4948- for directory in framework_dirs:
5049- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
5151-+
5250+ if 'SDKROOT' in self._Settings():
5351+ config = self.spec['configurations'][self.configname]
5452+ framework_dirs = config.get('mac_framework_dirs', [])
5553+ for directory in framework_dirs:
5654+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
57555858- self.configname = None
5959- return ldflags
6060-@@ -863,7 +874,11 @@
5656+ is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension()
5757+ if sdk_root and is_extension:
5858+@@ -1032,7 +1040,10 @@ class XcodeSettings(object):
6159 sdk_root = self._SdkPath(config_name)
6260 if not sdk_root:
6361 sdk_root = ''
6462- return l.replace('$(SDKROOT)', sdk_root)
6565-+
6663+ if self._SdkPath():
6764+ return l.replace('$(SDKROOT)', sdk_root)
6865+ else:
+2-1
pkgs/development/web/nodejs/v0_10.nix
···40404141 prePatch = ''
4242 patchShebangs .
4343+ sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
4444+ sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py
4345 '';
44464547 patches = stdenv.lib.optionals stdenv.isDarwin [ ./default-arch.patch ./no-xcode.patch ];
···6062 pushd $out/lib/node_modules/npm/node_modules/node-gyp
6163 patch -p2 < ${./no-xcode.patch}
6264 popd
6363- sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' $out/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
6465 '';
65666667 passthru.interpreterName = "nodejs-0.10";