mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-16 03:35:33 +00:00
Jakub Sokołowski
73a8992db7
Changes: - Drop `nix/mobile/android/maven-and-npm-deps/default.nix` - Replace it with much simpler `nix/tools/patchNodeModules` - Move Gradle patching tool to `nix/pkgs/patch-maven-srcs` - Simplify it by using `gradle.deps` and patched node modules separately - Change `TARGET` for `release-android` to `default` - Move `mobile/reset-node_modules.sh` to `scripts/node_modules.sh` - Move `nix/mobile/android/targets/release-android.nix` to `nix/mobile/android/release.nix` Signed-off-by: Jakub Sokołowski <jakub@status.im>
39 lines
816 B
Nix
39 lines
816 B
Nix
{ callPackage, lib, mkShell, deps, pkgs
|
|
, status-go, fastlane }:
|
|
|
|
let
|
|
inherit (lib) catAttrs unique;
|
|
|
|
pod-shell = callPackage ./pod-shell.nix { };
|
|
status-go-shell = callPackage ./status-go-shell.nix { inherit status-go; };
|
|
|
|
in {
|
|
inherit pod-shell status-go-shell;
|
|
|
|
shell = mkShell {
|
|
buildInputs = with pkgs; [
|
|
xcodeWrapper watchman bundler procps
|
|
flock # used in nix/scripts/node_modules.sh
|
|
];
|
|
|
|
inputsFrom = [
|
|
fastlane.shell
|
|
status-go-shell
|
|
pod-shell
|
|
];
|
|
|
|
shellHook = ''
|
|
{
|
|
cd "$STATUS_REACT_HOME"
|
|
|
|
# Set up symlinks to mobile enviroment in project root
|
|
ln -sf ./mobile/js_files/* ./
|
|
|
|
# check if node modules changed and if so install them
|
|
./nix/scripts/node_modules.sh "${deps.nodejs}"
|
|
}
|
|
'';
|
|
};
|
|
|
|
}
|