mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +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>
22 lines
631 B
Nix
22 lines
631 B
Nix
{ mkShell, callPackage, openjdk }:
|
|
|
|
let
|
|
licensedPkgs = callPackage ./licensed.nix { };
|
|
in
|
|
mkShell {
|
|
shellHook = ''
|
|
export JAVA_HOME="${openjdk}"
|
|
|
|
export ANDROID_HOME="${licensedPkgs}"
|
|
export ANDROID_SDK_ROOT="${licensedPkgs}"
|
|
export ANDROID_NDK_ROOT="${licensedPkgs}/ndk-bundle"
|
|
|
|
export PATH="$ANDROID_HOME/bin:$PATH"
|
|
export PATH="$ANDROID_NDK_ROOT:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/tools:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/tools/bin:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/build-tools:$PATH"
|
|
'';
|
|
}
|