2020-08-27 12:20:39 +00:00
|
|
|
#
|
|
|
|
# This Nix expression centralizes the configuration
|
|
|
|
# for the Android development environment.
|
|
|
|
#
|
|
|
|
|
2023-06-09 12:51:33 +00:00
|
|
|
{ androidenv, lib, stdenv }:
|
|
|
|
|
|
|
|
assert lib.assertMsg (stdenv.system != "aarch64-darwin")
|
|
|
|
"aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin";
|
2020-08-27 12:20:39 +00:00
|
|
|
|
2021-07-22 13:38:59 +00:00
|
|
|
# The "android-sdk-license" license is accepted
|
|
|
|
# by setting android_sdk.accept_license = true.
|
2020-08-27 12:20:39 +00:00
|
|
|
androidenv.composeAndroidPackages {
|
2023-01-31 16:54:29 +00:00
|
|
|
cmdLineToolsVersion = "9.0";
|
2020-08-27 12:20:39 +00:00
|
|
|
toolsVersion = "26.1.1";
|
2023-01-31 16:54:29 +00:00
|
|
|
platformToolsVersion = "33.0.3";
|
2023-06-14 01:47:41 +00:00
|
|
|
buildToolsVersions = [ "31.0.0" ];
|
2022-09-20 10:50:16 +00:00
|
|
|
platformVersions = [ "31" ];
|
2021-04-12 14:07:55 +00:00
|
|
|
cmakeVersions = [ "3.18.1" ];
|
|
|
|
ndkVersion = "22.1.7171670";
|
2021-07-22 13:38:59 +00:00
|
|
|
includeNDK = true;
|
2020-08-27 12:20:39 +00:00
|
|
|
includeExtras = [
|
|
|
|
"extras;android;m2repository"
|
|
|
|
"extras;google;m2repository"
|
|
|
|
];
|
|
|
|
}
|