Created
July 26, 2019 14:40
-
-
Save Jomik/17efba3a26bd3a1e8475006ba25155ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> { config.android_sdk.accept_license = true; }; | |
let | |
inherit (pkgs) mkShell openjdk; | |
androidPkgs = androidenv.composeAndroidPackages { | |
platformVersions = [ "28" ]; | |
abiVersions = [ "x86" "x86_64"]; | |
includeEmulator = true; | |
}; | |
inherit (androidPkgs) androidsdk; | |
in mkShell { | |
JAVA_HOME = "${openjdk}"; | |
ANDROID_HOME = "${androidsdk}"; | |
buildInputs = with pkgs; [ | |
nodejs-10_x | |
androidsdk | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out! The easiest way to work around this problem is using buildFHSUserEnv, as documented here https://nixos.wiki/wiki/Android#gradlew