abouttreesummaryrefslogcommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix22
1 files changed, 22 insertions, 0 deletions
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 <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
+ '';
+}