nix: set ANDROID_SDK_HOME to a tmp directory

This fixes issues with Gradle complaining about lack of `~/.android`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-01-19 13:42:59 +01:00
parent 4704cef3da
commit b33c086966
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ in stdenv.mkDerivation rec {
'' ''
# Fixes issue with failing to load libnative-platform.so # Fixes issue with failing to load libnative-platform.so
export GRADLE_USER_HOME=$(mktemp -d) export GRADLE_USER_HOME=$(mktemp -d)
export ANDROID_SDK_HOME=$(mktemp -d)
pushd ./android pushd ./android
${adhocEnvVars} ${pkgs.gradle}/bin/gradle \ ${adhocEnvVars} ${pkgs.gradle}/bin/gradle \