diff --git a/nix/deps/nodejs-patched/default.nix b/nix/deps/nodejs-patched/default.nix index ad6d3b1310..d46a14acc8 100644 --- a/nix/deps/nodejs-patched/default.nix +++ b/nix/deps/nodejs-patched/default.nix @@ -15,6 +15,7 @@ stdenv.mkDerivation { "patchYogaNodePackagePhase" "patchReactNativePhase" "patchPodPhase" + "patchReactNativeXcodeScriptPhase" "installPhase" ]; @@ -106,6 +107,18 @@ stdenv.mkDerivation { '[RCTConvert UIColor:options.tintColor() ? @(*options.tintColor()) : nil];' ''; +# Patch React Native Xcode Script that searches for nvm +# FIXME: Remove this once we upgrade react-native to 0.69.x + patchReactNativeXcodeScriptPhase = '' + substituteInPlace ./node_modules/react-native/scripts/find-node.sh --replace \ + '# Define NVM_DIR and source the nvm.sh setup script' \ + '<