From 8bf5abdf3da88608155b9e9289fd9d2d2ab083e8 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 18 Apr 2023 22:16:12 +0530 Subject: [PATCH] patch react-native script to not look for `nvm` (#15681) --- nix/deps/nodejs-patched/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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' \ + '<