Unexpected-Keyboard/shell.nix
Jules Aguillon 5f5efe3157 Change build system to make
The ant scripts included in the android SDK were removed recently. The
alternative is Gradle.
Gradle doesn't work well in this app because it's not possible to use
Nix to pull dependencies. Gradle will try to patch the SDK.
Also, it's very slow.

It turns out the required build script is quite simple.
2021-04-13 00:29:26 +02:00

21 lines
406 B
Nix

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