From eb9d8a704aaa86b9b0c33a8283ee50a4b3631b92 Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Sat, 27 Aug 2022 16:54:11 +0300 Subject: [PATCH] add android sdk --- shell.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 ]; }