2021-01-04 23:31:04 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {
|
|
|
|
config.android_sdk.accept_license = true;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
android = pkgs.androidenv.composeAndroidPackages {
|
2021-01-04 23:50:51 +01:00
|
|
|
platformVersions = [ "29" ];
|
2021-01-04 23:31:04 +01:00
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
2021-01-16 22:01:05 +01:00
|
|
|
ant openjdk8 android.androidsdk
|
2021-01-04 23:31:04 +01:00
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
export ANDROID_HOME=${android.androidsdk}/libexec/android-sdk
|
|
|
|
'';
|
|
|
|
}
|