diff --git a/env/flutter.nix b/env/flutter.nix new file mode 100644 index 0000000..d7b1ff3 --- /dev/null +++ b/env/flutter.nix @@ -0,0 +1,11 @@ +{ pkgs ? import { } }: + +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; +}