androidenv: use emulator from the path that makes it find qemu (#202088)

This commit is contained in:
Léo Gaspard 2022-12-06 21:16:49 +01:00 committed by GitHub
parent 84c17bc98f
commit ad25aa1098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,6 +312,12 @@ rec {
ln -s $i $out/bin
done
# the emulator auto-linked from platform-tools does not find its local qemu, while this one does
${lib.optionalString includeEmulator ''
rm $out/bin/emulator
ln -s $out/libexec/android-sdk/emulator/emulator $out/bin
''}
# Write licenses
mkdir -p licenses
${lib.concatMapStrings (licenseName: