2022-08-27 15:22:58 +00:00
|
|
|
{ pkgs ? import <unstable> { config.android_sdk.accept_license = true; } }:
|
2022-08-27 12:18:03 +00:00
|
|
|
|
2022-08-27 13:54:11 +00:00
|
|
|
let
|
|
|
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
|
|
|
toolsVersion = "26.1.1";
|
|
|
|
platformToolsVersion = "33.0.2";
|
2022-08-27 15:22:58 +00:00
|
|
|
buildToolsVersions = [ "30.0.3" ];
|
|
|
|
platformVersions = [ "31" "30" "29" ];
|
2022-08-27 13:54:11 +00:00
|
|
|
};
|
|
|
|
in
|
2022-08-27 12:18:03 +00:00
|
|
|
pkgs.mkShell {
|
2022-08-27 21:08:28 +00:00
|
|
|
ANDROID_HOME = "${androidComposition.androidsdk}/libexec/android-sdk";
|
2022-08-27 13:54:11 +00:00
|
|
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
2022-08-27 15:22:58 +00:00
|
|
|
nativeBuildInputs = with pkgs; [ flutter openjdk11_headless ];
|
2022-08-27 12:18:03 +00:00
|
|
|
}
|