androidenv: fix compose-android-packages on non-x86_64 environments

This has always been possible, however the nix package previously checked against stdenv.system with only x86_64 architectures used.
This commit is contained in:
pearl 2024-04-16 23:55:15 -04:00
parent edd8117bfa
commit 0e2402e288

View File

@ -27,8 +27,8 @@
let
# Determine the Android os identifier from Nix's system identifier
os = if stdenv.system == "x86_64-linux" then "linux"
else if stdenv.system == "x86_64-darwin" then "macosx"
os = if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "macosx"
else throw "No Android SDK tarballs are available for system architecture: ${stdenv.system}";
# Uses mkrepo.rb to create a repo spec.