Unexpected-Keyboard/shell.nix
Jules Aguillon d606a7924d Build requires Android Build Tools <= 30.0.3
'dx' is missing in 31.0.0.
2021-09-21 00:42:26 +02:00

22 lines
445 B
Nix

{ pkgs ? import <nixpkgs> {
config.android_sdk.accept_license = true;
config.allowUnfree = true;
} }:
let
android = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [ "30.0.3" ];
platformVersions = [ "29" ];
abiVersions = [ "armeabi-v7a" ];
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
findutils openjdk8 android.androidsdk
];
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
}