mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-02 06:03:06 +00:00
For some unknown reason the builds would fail with: /bin/sh: line 1: clang: command not found Unless we added Android NDK toolchains/llvm/prebuilt to PATH. Signed-off-by: Jakub Sokołowski <jakub@status.im>
27 lines
754 B
Nix
27 lines
754 B
Nix
#
|
|
# This Nix expression centralizes the configuration
|
|
# for the Android development environment.
|
|
#
|
|
|
|
{ androidenv, lib, stdenv }:
|
|
|
|
assert lib.assertMsg (stdenv.system != "aarch64-darwin")
|
|
"aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin";
|
|
|
|
# The "android-sdk-license" license is accepted
|
|
# by setting android_sdk.accept_license = true.
|
|
androidenv.composeAndroidPackages {
|
|
cmdLineToolsVersion = "9.0";
|
|
toolsVersion = "26.1.1";
|
|
platformToolsVersion = "34.0.5";
|
|
buildToolsVersions = [ "34.0.0" ];
|
|
platformVersions = [ "34" ];
|
|
cmakeVersions = [ "3.22.1" ];
|
|
ndkVersion = "27.2.12479018";
|
|
includeNDK = true;
|
|
includeExtras = [
|
|
"extras;android;m2repository"
|
|
"extras;google;m2repository"
|
|
];
|
|
}
|