Unexpected-Keyboard/shell.nix
Jules Aguillon 539c7fcd74 Add 'shell.nix' and build the project
Add a working environment and specify Java version
2021-01-04 23:31:04 +01:00

23 lines
427 B
Nix

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