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:
parent
edd8117bfa
commit
0e2402e288
|
@ -27,8 +27,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
# Determine the Android os identifier from Nix's system identifier
|
# Determine the Android os identifier from Nix's system identifier
|
||||||
os = if stdenv.system == "x86_64-linux" then "linux"
|
os = if stdenv.isLinux then "linux"
|
||||||
else if stdenv.system == "x86_64-darwin" then "macosx"
|
else if stdenv.isDarwin then "macosx"
|
||||||
else throw "No Android SDK tarballs are available for system architecture: ${stdenv.system}";
|
else throw "No Android SDK tarballs are available for system architecture: ${stdenv.system}";
|
||||||
|
|
||||||
# Uses mkrepo.rb to create a repo spec.
|
# Uses mkrepo.rb to create a repo spec.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user