Android: Difference between revisions
imported>Lopsided98 m Fix URL |
imported>Abdillah Add older platform version overlays |
||
| Line 24: | Line 24: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Use Older Platform Version === | |||
If you would like to get older platform version, you can write the following. | |||
<syntaxhighlight lang=nix> | |||
{ pkgs ? import <nixpkgs> { | |||
config.android_sdk.accept_license = true; | |||
overlays = [ | |||
(self: super: { | |||
androidPkgs_8_0 = super.androidenv.composeAndroidPackages { | |||
platformVersions = [ "26" ]; | |||
abiVersions = [ "x86" "x86_64"]; | |||
}; | |||
}) | |||
]; | |||
} }: | |||
(pkgs.buildFHSUserEnv { | |||
name = "android-sdk-env"; | |||
targetPkgs = pkgs: (with pkgs; | |||
[ | |||
androidPkgs_8_0.androidsdk | |||
glibc | |||
]); | |||
runScript = "bash"; | |||
}).env | |||
</syntaxhighlight> | |||
== Interaction with your Android device == | == Interaction with your Android device == | ||