File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ stdenv.mkDerivation {
15
15
"patchYogaNodePackagePhase"
16
16
"patchReactNativePhase"
17
17
"patchPodPhase"
18
+ "patchReactNativeXcodeScriptPhase"
18
19
"installPhase"
19
20
] ;
20
21
@@ -106,6 +107,18 @@ stdenv.mkDerivation {
106
107
'[RCTConvert UIColor:options.tintColor() ? @(*options.tintColor()) : nil];'
107
108
'' ;
108
109
110
+ # Patch React Native Xcode Script that searches for nvm
111
+ # FIXME: Remove this once we upgrade react-native to 0.69.x
112
+ patchReactNativeXcodeScriptPhase = ''
113
+ substituteInPlace ./node_modules/react-native/scripts/find-node.sh --replace \
114
+ '# Define NVM_DIR and source the nvm.sh setup script' \
115
+ '<<comment # \n Define NVM_DIR and source the nvm.sh setup script'
116
+
117
+ substituteInPlace ./node_modules/react-native/scripts/find-node.sh --replace \
118
+ '# Set up the nodenv node version manager if present' \
119
+ 'comment # \n Set up the nodenv node version manager if present'
120
+ '' ;
121
+
109
122
110
123
# The ELF types are incompatible with the host platform, so let's not even try
111
124
# TODO: Use Android NDK to strip binaries manually
You can’t perform that action at this time.
0 commit comments