2023-03-01 16:27:43 +00:00
|
|
|
{ mkShell, nodejs, deps }:
|
2022-08-29 16:26:14 +00:00
|
|
|
|
|
|
|
mkShell {
|
|
|
|
shellHook = ''
|
2023-03-01 16:27:43 +00:00
|
|
|
# Fix for ERR_OSSL_EVP_UNSUPPORTED error.
|
|
|
|
export NODE_OPTIONS="--openssl-legacy-provider";
|
2023-04-12 18:10:07 +00:00
|
|
|
# Same fix but for Xcode React Native script.
|
|
|
|
export NODE_ARGS="--openssl-legacy-provider --max-old-space-size=16384";
|
2023-03-01 16:27:43 +00:00
|
|
|
# Fix Xcode using system Node.js version.
|
|
|
|
export NODE_BINARY="${nodejs}/bin/node";
|
|
|
|
|
2023-04-20 10:36:48 +00:00
|
|
|
# Check if node modules changed and if so install them.
|
2022-08-29 16:26:14 +00:00
|
|
|
"$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh" ${deps.nodejs-patched}
|
|
|
|
'';
|
|
|
|
}
|