diff --git a/pkgs/development/mobile/androidenv/androidsdk.nix b/pkgs/development/mobile/androidenv/androidsdk.nix index 02c1546ace7b..01ba759f4f69 100644 --- a/pkgs/development/mobile/androidenv/androidsdk.nix +++ b/pkgs/development/mobile/androidenv/androidsdk.nix @@ -219,7 +219,7 @@ stdenv.mkDerivation rec { fi done - for i in $out/libexec/android-sdk-*/build-tools/android-*/* + for i in $out/libexec/android-sdk-*/build-tools/*/* do if [ ! -d $i ] && [ -x $i ] then diff --git a/pkgs/development/mobile/androidenv/build-tools.nix b/pkgs/development/mobile/androidenv/build-tools.nix index 1b49c8f6fc4e..2918acd8c15e 100644 --- a/pkgs/development/mobile/androidenv/build-tools.nix +++ b/pkgs/development/mobile/androidenv/build-tools.nix @@ -18,10 +18,11 @@ stdenv.mkDerivation rec { mkdir -p $out/build-tools cd $out/build-tools unzip $src + mv android-* ${version} ${stdenv.lib.optionalString (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") '' - cd android-* + cd ${version} # Patch the interpreter for i in aapt aidl bcc_compat dexdump llvm-rs-cc