2020-08-27 12:20:39 +00:00
|
|
|
{ mkShell, openjdk, androidPkgs }:
|
2020-04-22 17:05:18 +00:00
|
|
|
|
2020-08-27 12:20:39 +00:00
|
|
|
mkShell {
|
|
|
|
name = "android-env-shell";
|
|
|
|
shellHook = ''
|
|
|
|
export JAVA_HOME="${openjdk}"
|
2020-04-22 17:05:18 +00:00
|
|
|
|
2021-07-22 10:51:05 +00:00
|
|
|
export ANDROID_HOME="${androidPkgs.sdk}"
|
|
|
|
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
|
|
|
|
export ANDROID_SDK_ROOT="$ANDROID_HOME"
|
2020-04-22 17:05:18 +00:00
|
|
|
|
2020-08-27 12:20:39 +00:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
}
|