Skip to content

Commit

Permalink
nix: set GRADLE_USER_HOME to a temp dir
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Jul 29, 2020
1 parent 0be5f5d commit 8bb9974
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nix/mobile/android/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ in stdenv.mkDerivation rec {
assert ANDROID_ABI_SPLIT != null && ANDROID_ABI_SPLIT != "";
assert stringLength ANDROID_ABI_INCLUDE > 0;
''
# Fixes issue with failing to load libnative-platform.so
export GRADLE_USER_HOME=$(mktemp -d)
pushd ./android
${adhocEnvVars} ${pkgs.gradle}/bin/gradle \
${toString gradleOpts} \
Expand Down

0 comments on commit 8bb9974

Please sign in to comment.