mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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
|
||||
# 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.
|
||||
|
Loading…
Reference in New Issue
Block a user