From e67431905a812db3eb8432e8539654dfaa551c29 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 20 Oct 2020 12:58:24 +0200 Subject: [PATCH] Add Flutter environment --- env/flutter.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 env/flutter.nix 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; +}