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