2023-03-01 16:27:43 +00:00
|
|
|
{ mkShell, nodejs, deps }:
|
2022-08-29 16:26:14 +00:00
|
|
|
|
|
|
|
mkShell {
|
2023-03-01 16:27:43 +00:00
|
|
|
# Check if node modules changed and if so install them.
|
2022-08-29 16:26:14 +00:00
|
|
|
shellHook = ''
|
2023-03-01 16:27:43 +00:00
|
|
|
# Fix for ERR_OSSL_EVP_UNSUPPORTED error.
|
|
|
|
export NODE_OPTIONS="--openssl-legacy-provider";
|
|
|
|
|
|
|
|
# Fix Xcode using system Node.js version.
|
|
|
|
export NODE_BINARY="${nodejs}/bin/node";
|
|
|
|
|
2022-08-29 16:26:14 +00:00
|
|
|
export STATUS_MOBILE_HOME=$(git rev-parse --show-toplevel)
|
|
|
|
"$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh" ${deps.nodejs-patched}
|
|
|
|
'';
|
|
|
|
}
|