mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-09 08:22:17 +00:00
Jakub Sokołowski
bcf919fcbb
Also renamed `android-env` shell to `android-sdk` to be more descriptive. Signed-off-by: Jakub Sokołowski <jakub@status.im>
20 lines
570 B
Nix
20 lines
570 B
Nix
{ mkShell, openjdk, androidPkgs }:
|
|
|
|
mkShell {
|
|
name = "android-sdk-shell";
|
|
shellHook = ''
|
|
export JAVA_HOME="${openjdk}"
|
|
|
|
export ANDROID_HOME="${androidPkgs.sdk}"
|
|
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
|
|
export ANDROID_SDK_ROOT="$ANDROID_HOME"
|
|
|
|
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"
|
|
'';
|
|
}
|