Add Flutter environment

This commit is contained in:
coolneng 2020-10-20 12:58:24 +02:00
parent 1989f090b4
commit e67431905a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 11 additions and 0 deletions

11
env/flutter.nix vendored Normal file
View File

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [ dart flutter androidenv.androidPkgs_9_0.androidsdk jdk ];
ANDROID_HOME = "${androidenv.androidPkgs_9_0.androidsdk}/libexec/android-sdk";
ANDROID_AVD_HOME = (toString ./.) + "/.android/avd";
JAVA_HOME = pkgs.jdk;
}