tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nodejs-7_x: 7.9.0 -> 7.10.0
Mathias Schreck
8 years ago
4abefec3
df8a7d95
+82
-2
2 changed files
expand all
collapse all
unified
split
pkgs
development
web
nodejs
no-xcode-v7.patch
v7.nix
+79
pkgs/development/web/nodejs/no-xcode-v7.patch
···
1
1
+
diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
2
2
+
index a173ff0..1fc821a 100644
3
3
+
--- a/tools/gyp/pylib/gyp/xcode_emulation.py
4
4
+
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py
5
5
+
@@ -507,9 +507,12 @@ class XcodeSettings(object):
6
6
+
def _XcodePlatformPath(self, configname=None):
7
7
+
sdk_root = self._SdkRoot(configname)
8
8
+
if sdk_root not in XcodeSettings._platform_path_cache:
9
9
+
- platform_path = self._GetSdkVersionInfoItem(sdk_root,
10
10
+
+ try:
11
11
+
+ platform_path = self._GetSdkVersionInfoItem(sdk_root,
12
12
+
'--show-sdk-platform-path')
13
13
+
- XcodeSettings._platform_path_cache[sdk_root] = platform_path
14
14
+
+ XcodeSettings._platform_path_cache[sdk_root] = platform_path
15
15
+
+ except:
16
16
+
+ XcodeSettings._platform_path_cache[sdk_root] = None
17
17
+
return XcodeSettings._platform_path_cache[sdk_root]
18
18
+
19
19
+
def _SdkPath(self, configname=None):
20
20
+
@@ -520,10 +523,13 @@ class XcodeSettings(object):
21
21
+
22
22
+
def _XcodeSdkPath(self, sdk_root):
23
23
+
if sdk_root not in XcodeSettings._sdk_path_cache:
24
24
+
- sdk_path = self._GetSdkVersionInfoItem(sdk_root, '--show-sdk-path')
25
25
+
- XcodeSettings._sdk_path_cache[sdk_root] = sdk_path
26
26
+
- if sdk_root:
27
27
+
- XcodeSettings._sdk_root_cache[sdk_path] = sdk_root
28
28
+
+ try:
29
29
+
+ sdk_path = self._GetSdkVersionInfoItem(sdk_root, '--show-sdk-path')
30
30
+
+ XcodeSettings._sdk_path_cache[sdk_root] = sdk_path
31
31
+
+ if sdk_root:
32
32
+
+ XcodeSettings._sdk_root_cache[sdk_path] = sdk_root
33
33
+
+ except:
34
34
+
+ XcodeSettings._sdk_path_cache[sdk_root] = None
35
35
+
return XcodeSettings._sdk_path_cache[sdk_root]
36
36
+
37
37
+
def _AppendPlatformVersionMinFlags(self, lst):
38
38
+
@@ -653,10 +659,11 @@ class XcodeSettings(object):
39
39
+
framework_root = sdk_root
40
40
+
else:
41
41
+
framework_root = ''
42
42
+
- config = self.spec['configurations'][self.configname]
43
43
+
- framework_dirs = config.get('mac_framework_dirs', [])
44
44
+
- for directory in framework_dirs:
45
45
+
- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
46
46
+
+ if 'SDKROOT' in self._Settings():
47
47
+
+ config = self.spec['configurations'][self.configname]
48
48
+
+ framework_dirs = config.get('mac_framework_dirs', [])
49
49
+
+ for directory in framework_dirs:
50
50
+
+ cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
51
51
+
52
52
+
self.configname = None
53
53
+
return cflags
54
54
+
@@ -908,10 +915,11 @@ class XcodeSettings(object):
55
55
+
sdk_root = self._SdkPath()
56
56
+
if not sdk_root:
57
57
+
sdk_root = ''
58
58
+
- config = self.spec['configurations'][self.configname]
59
59
+
- framework_dirs = config.get('mac_framework_dirs', [])
60
60
+
- for directory in framework_dirs:
61
61
+
- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
62
62
+
+ if 'SDKROOT' in self._Settings():
63
63
+
+ config = self.spec['configurations'][self.configname]
64
64
+
+ framework_dirs = config.get('mac_framework_dirs', [])
65
65
+
+ for directory in framework_dirs:
66
66
+
+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
67
67
+
68
68
+
platform_root = self._XcodePlatformPath(configname)
69
69
+
if sdk_root and platform_root and self._IsXCTest():
70
70
+
@@ -1683,6 +1691,9 @@ def _NormalizeEnvVarReferences(str):
71
71
+
"""Takes a string containing variable references in the form ${FOO}, $(FOO),
72
72
+
or $FOO, and returns a string with all variable references in the form ${FOO}.
73
73
+
"""
74
74
+
+ if str is None:
75
75
+
+ return ''
76
76
+
+
77
77
+
# $FOO -> ${FOO}
78
78
+
str = re.sub(r'\$([a-zA-Z_][a-zA-Z0-9_]*)', r'${\1}', str)
79
79
+
+3
-2
pkgs/development/web/nodejs/v7.nix
···
10
10
baseName = if enableNpm then "nodejs" else "nodejs-slim";
11
11
in
12
12
stdenv.mkDerivation (nodejs // rec {
13
13
-
version = "7.9.0";
13
13
+
version = "7.10.0";
14
14
name = "${baseName}-${version}";
15
15
src = fetchurl {
16
16
url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz";
17
17
-
sha256 = "0abaz5z0cv7amd6blm4cm91asj30ydf0lq3j0wdg6aa9i15pcsd5";
17
17
+
sha256 = "08czj7ssvzgv13zvhg2y9mhy4cc6pvm4bcp7rbzj3a2ba8axsd6w";
18
18
};
19
19
20
20
+
patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-xcode-v7.patch ];
20
21
})
21
22