From 3c2bc328e83d3510b18d4e1cd92ab6352caece5c Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Thu, 25 Jan 2024 15:58:52 +0530 Subject: [PATCH] chore: patch RN to use my fork of hermes --- nix/deps/nodejs-patched/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/deps/nodejs-patched/default.nix b/nix/deps/nodejs-patched/default.nix index 2efb586b52..ba3637fcd9 100644 --- a/nix/deps/nodejs-patched/default.nix +++ b/nix/deps/nodejs-patched/default.nix @@ -13,6 +13,7 @@ stdenv.mkDerivation { "patchKeyChainPhase" "patchGlogPhase" "patchBoostPodSpec" + "patchReactAndroidPhase" "installPhase" ]; @@ -86,6 +87,12 @@ stdenv.mkDerivation { 'https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2' \ ''; + patchReactAndroidPhase = '' + substituteInPlace ./node_modules/react-native/ReactAndroid/hermes-engine/build.gradle \ + --replace 'src("https://github.com/facebook/hermes/tarball/''${hermesVersion}")' \ + 'src("https://github.com/siddarthkay/hermes/tarball/bump-max-native-stack-depth")' \ + ''; + # The ELF types are incompatible with the host platform, so let's not even try # TODO: Use Android NDK to strip binaries manually dontPatchELF = true;