2021-01-04 23:31:04 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {
|
|
|
|
config.android_sdk.accept_license = true;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
} }:
|
|
|
|
|
|
|
|
let
|
2021-12-14 00:13:34 +01:00
|
|
|
jdk = pkgs.openjdk8;
|
2021-01-04 23:31:04 +01:00
|
|
|
|
|
|
|
android = pkgs.androidenv.composeAndroidPackages {
|
2021-09-21 00:42:26 +02:00
|
|
|
buildToolsVersions = [ "30.0.3" ];
|
2021-12-12 23:48:05 +01:00
|
|
|
platformVersions = [ "30" ];
|
2021-01-04 23:31:04 +01:00
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
};
|
|
|
|
|
2021-12-14 00:13:34 +01:00
|
|
|
apksigner = pkgs.apksigner.override {
|
|
|
|
inherit (jdk) jre;
|
|
|
|
inherit (android) build-tools;
|
|
|
|
};
|
2021-01-04 23:31:04 +01:00
|
|
|
|
2021-12-14 00:13:34 +01:00
|
|
|
in pkgs.mkShell {
|
|
|
|
buildInputs = [ pkgs.findutils jdk android.androidsdk apksigner ];
|
2021-04-11 21:02:03 +02:00
|
|
|
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
|
2021-01-04 23:31:04 +01:00
|
|
|
}
|