From b33c086966d67aeafb3c24b6a989d7765d46778d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 19 Jan 2021 13:42:59 +0100 Subject: [PATCH] nix: set ANDROID_SDK_HOME to a tmp directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes issues with Gradle complaining about lack of `~/.android`. Signed-off-by: Jakub SokoĊ‚owski --- nix/mobile/android/release.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/mobile/android/release.nix b/nix/mobile/android/release.nix index 17d14ff33b..34441a6555 100644 --- a/nix/mobile/android/release.nix +++ b/nix/mobile/android/release.nix @@ -143,6 +143,7 @@ in stdenv.mkDerivation rec { '' # Fixes issue with failing to load libnative-platform.so export GRADLE_USER_HOME=$(mktemp -d) + export ANDROID_SDK_HOME=$(mktemp -d) pushd ./android ${adhocEnvVars} ${pkgs.gradle}/bin/gradle \