2020-04-04 14:57:04 +02:00
|
|
|
{ sources ? import ./nix/sources.nix }:
|
2020-01-09 10:52:31 +01:00
|
|
|
|
|
|
|
let
|
2020-10-19 13:34:22 +02:00
|
|
|
pkgs = import sources.nixpkgs { config.android_sdk.accept_license = true;};
|
2020-04-04 14:57:04 +02:00
|
|
|
android = pkgs.callPackage ./nix/android.nix { };
|
2020-01-09 10:52:31 +01:00
|
|
|
in pkgs.mkShell {
|
2020-10-19 13:34:22 +02:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
# from pkgs
|
|
|
|
flutter
|
|
|
|
jdk
|
|
|
|
niv
|
|
|
|
#from ./nix/*
|
|
|
|
android.platform-tools ];
|
2020-01-10 18:49:11 +01:00
|
|
|
|
2020-04-04 14:57:04 +02:00
|
|
|
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
|
|
|
|
JAVA_HOME = pkgs.jdk;
|
|
|
|
ANDROID_AVD_HOME = (toString ./.) + "/.android/avd";
|
2020-01-09 10:52:31 +01:00
|
|
|
}
|