nix: make android emulator optional
Tony was having issues on aarch64-linux Changelog-Fixed: Fix nix build on aarch64-linux
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
{ pkgs ? import <nixpkgs> { }
|
{ pkgs ? import <nixpkgs> { }
|
||||||
, android ? fetchTarball "https://github.com/tadfisher/android-nixpkgs/archive/refs/tags/2024-04-02.tar.gz"
|
, android ? fetchTarball "https://github.com/tadfisher/android-nixpkgs/archive/refs/tags/2024-04-02.tar.gz"
|
||||||
, use_android ? true }:
|
, use_android ? true
|
||||||
|
, android_emulator ? false
|
||||||
|
}:
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -13,9 +15,8 @@ let
|
|||||||
build-tools-34-0-0
|
build-tools-34-0-0
|
||||||
platform-tools
|
platform-tools
|
||||||
platforms-android-30
|
platforms-android-30
|
||||||
emulator
|
|
||||||
ndk-24-0-8215888
|
ndk-24-0-8215888
|
||||||
]);
|
] ++ lib.optional android_emulator [emulator]);
|
||||||
|
|
||||||
android-sdk-path = "${android-sdk.out}/share/android-sdk";
|
android-sdk-path = "${android-sdk.out}/share/android-sdk";
|
||||||
android-ndk-path = "${android-sdk-path}/ndk/${ndk-version}";
|
android-ndk-path = "${android-sdk-path}/ndk/${ndk-version}";
|
||||||
|
|||||||
Reference in New Issue
Block a user