androidenv: fix ndk linking for ndk < 23

This commit is contained in:
Van Tuan Vo 2022-07-24 14:32:28 +02:00
parent 650cb46679
commit e8dfc2d72a
No known key found for this signature in database
GPG key ID: 7C96B1B77958A566

View file

@ -23,7 +23,7 @@ deployAndroidPackage {
# to still support the old standalone toolchains builds.
if [ -d $out/libexec/android-sdk/ndk ] && [ ! -d $out/libexec/android-sdk/ndk-bundle ]; then
ln -sf $out/libexec/android-sdk/ndk/${package.revision} $out/libexec/android-sdk/ndk-bundle
else
elif [ ! -d $out/libexec/android-sdk/ndk-bundle ]; then
echo "The ndk-bundle layout has changed. The nix expressions have to be updated!"
exit 1
fi