From 539c7fcd7442a3da77bd61d7662b38f879ae4651 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 4 Jan 2021 23:31:04 +0100 Subject: Add 'shell.nix' and build the project Add a working environment and specify Java version --- shell.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..bb09515 --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +{ pkgs ? import { + 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 + ''; +} -- cgit v1.2.3