forked from extern/Unexpected-Keyboard
Add 'shell.nix' and build the project
Add a working environment and specify Java version
This commit is contained in:
parent
0b94395233
commit
539c7fcd74
@ -18,3 +18,6 @@ source.dir=srcs
|
||||
|
||||
key.store=release-keys.keystore
|
||||
key.alias=releasekey
|
||||
|
||||
java.source=8
|
||||
java.target=8
|
||||
|
22
shell.nix
Normal file
22
shell.nix
Normal file
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user