mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
Jakub Sokołowski
3e8647d626
Also adds an assertion that gives a better error when trying to use an `ios` Nix shell on an unsupported operating system. Resolves: https://github.com/status-im/status-mobile/issues/15695 Signed-off-by: Jakub Sokołowski <jakub@status.im>
16 lines
518 B
Nix
16 lines
518 B
Nix
{ mkShell, nodejs, deps }:
|
|
|
|
mkShell {
|
|
shellHook = ''
|
|
# Fix for ERR_OSSL_EVP_UNSUPPORTED error.
|
|
export NODE_OPTIONS="--openssl-legacy-provider";
|
|
# Same fix but for Xcode React Native script.
|
|
export NODE_ARGS="--openssl-legacy-provider --max-old-space-size=16384";
|
|
# Fix Xcode using system Node.js version.
|
|
export NODE_BINARY="${nodejs}/bin/node";
|
|
|
|
# Check if node modules changed and if so install them.
|
|
"$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh" ${deps.nodejs-patched}
|
|
'';
|
|
}
|