diff --git a/shell.nix b/shell.nix index 3f12f50d..09859658 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,14 @@ -{ pkgs ? import {} }: +{ pkgs ? import { config.android_sdk.accept_license = true; } }: +let + androidComposition = pkgs.androidenv.composeAndroidPackages { + toolsVersion = "26.1.1"; + platformToolsVersion = "33.0.2"; + buildToolsVersions = [ "33.0.0" ]; + }; +in pkgs.mkShell { - nativeBuildInputs = with pkgs; [ flutter dart ]; + ANDROID_HOME= "${androidComposition.androidsdk}/libexec/android-sdk"; + ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk"; + nativeBuildInputs = with pkgs; [ flutter dart openjdk11 ]; }