Skip to content

Instantly share code, notes, and snippets.

@Jomik
Created July 26, 2019 14:40
Show Gist options
  • Save Jomik/17efba3a26bd3a1e8475006ba25155ca to your computer and use it in GitHub Desktop.
Save Jomik/17efba3a26bd3a1e8475006ba25155ca to your computer and use it in GitHub Desktop.
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
];
}
@pietdevries94
Copy link

I figured it out! The easiest way to work around this problem is using buildFHSUserEnv, as documented here https://nixos.wiki/wiki/Android#gradlew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment