Skip to content

Commit 30e9aa5

Browse files
committed
nix: make android emulator optional
Tony was having issues on aarch64-linux Changelog-Fixed: Fix nix build on aarch64-linux
1 parent aacc41e commit 30e9aa5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shell.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{ pkgs ? import <nixpkgs> { }
22
, android ? fetchTarball "https://github.com/tadfisher/android-nixpkgs/archive/refs/tags/2024-04-02.tar.gz"
3-
, use_android ? true }:
3+
, use_android ? true
4+
, android_emulator ? false
5+
}:
46
with pkgs;
57

68
let
@@ -13,9 +15,8 @@ let
1315
build-tools-34-0-0
1416
platform-tools
1517
platforms-android-30
16-
emulator
1718
ndk-24-0-8215888
18-
]);
19+
] ++ lib.optional android_emulator [emulator]);
1920

2021
android-sdk-path = "${android-sdk.out}/share/android-sdk";
2122
android-ndk-path = "${android-sdk-path}/ndk/${ndk-version}";

0 commit comments

Comments
 (0)