2022-08-27 13:54:11 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { config.android_sdk.accept_license = true; } }:
|
2022-08-27 12:18:03 +00:00
|
|
|
|
2022-08-27 13:54:11 +00:00
|
|
|
let
|
2022-08-27 14:37:48 +00:00
|
|
|
unstable = import (fetchTarball "https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz") {};
|
|
|
|
|
2022-08-27 13:54:11 +00:00
|
|
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
|
|
|
toolsVersion = "26.1.1";
|
|
|
|
platformToolsVersion = "33.0.2";
|
|
|
|
buildToolsVersions = [ "33.0.0" ];
|
|
|
|
};
|
|
|
|
in
|
2022-08-27 12:18:03 +00:00
|
|
|
pkgs.mkShell {
|
2022-08-27 13:54:11 +00:00
|
|
|
ANDROID_HOME= "${androidComposition.androidsdk}/libexec/android-sdk";
|
|
|
|
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
|
2022-08-27 14:37:48 +00:00
|
|
|
nativeBuildInputs = with pkgs; [ unstable.flutter openjdk11_headless ];
|
2022-08-27 12:18:03 +00:00
|
|
|
}
|