{ pkgs ? import { config.android_sdk.accept_license = true; config.allowUnfree = true; } }: pkgs.mkShell { buildInputs = with pkgs; [ flutter android-tools # for adb openjdk # required for Android builds # pkgs.androidenv.androidPkgs.androidsdk # The customized SDK that we've made above # androidenv.androidPkgs.ndk-bundle ]; # Setting up android build environments on nix is a bit of a pain - immutable paths, etc. # I used a hacky workaround by manually downloading the SDK and NDK from the website and simply telling the shell where to find them ANDROID_HOME = "/scratch/remy/android"; shellHook = '' echo "Flutter dev environment ready. 'adb' and 'flutter' are available." ''; }