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
|
|
|
|
2020-08-27 12:20:39 +00:00
|
|
|
export ANDROID_HOME="${androidPkgs}"
|
|
|
|
export ANDROID_SDK_ROOT="${androidPkgs}"
|
|
|
|
export ANDROID_NDK_ROOT="${androidPkgs}/ndk-bundle"
|
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"
|
|
|
|
'';
|
|
|
|
}
|