mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
34f7a48503
Fixes partially #15595 In order to build less targets, when not needed we introduce this mapping logic. If only specific ABI is required - status-go will have the same arhitecuture.
28 lines
589 B
Nix
28 lines
589 B
Nix
{ pkgs, deps, callPackage, mkShell
|
|
, jsbundle, status-go, androidPkgs, androidShell }:
|
|
|
|
rec {
|
|
release = callPackage ./release.nix {
|
|
inherit jsbundle status-go;
|
|
};
|
|
|
|
shell = mkShell {
|
|
buildInputs = with pkgs; [
|
|
openjdk
|
|
gradle
|
|
lsof # used in start-react-native.sh
|
|
flock # used in nix/scripts/node_modules.sh
|
|
];
|
|
|
|
inputsFrom = [
|
|
(release {})
|
|
androidShell
|
|
];
|
|
|
|
shellHook = ''
|
|
# check if node modules changed and if so install them
|
|
$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh ${deps.nodejs-patched}
|
|
'';
|
|
};
|
|
}
|