Open cguentherTUChemnitz opened 2 months ago
As far as i understand is this the point, where the selectable ndks are defined: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/androidndk-pkgs/default.nix
I am trying to write some overlays to provide the ndk 27.2 but i am failing to do so. Can anyone provide a meaningful override to provide current ndk in devenv.nix?
My current attempt is something like this:
{
pkgs,
lib,
config,
inputs,
...
}:
let
system = pkgs.stdenv.system;
nixpkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(final: prev: {
androidndkPkgs = prev.androidndkPkgs // {
"27" = prev.androidenv.composeAndroidPackages {
includeNDK = true;
ndkVersion = "27.2.12479018";
};
};
})
];
};
in
{
android = {
enable = true;
platforms.version = [ "35" ];
systemImageTypes = [ "google_apis_playstore" ];
abis = [ "arm64-v8a" "x86_64" ];
cmdLineTools.version = "12.0";
emulator = {
enable = true;
version = "35.2.5";
};
sources.enable = false;
systemImages.enable = true;
ndk = {
enable = true;
version = [ "27" ];
};
extraLicenses = [
"android-sdk-preview-license"
"android-googletv-license"
"android-sdk-arm-dbt-license"
"google-gdk-license"
"intel-android-extra-license"
"intel-android-sysimage-license"
"mips-android-sysimage-license"
];
};
}
But it does not pick up the populated version 27, even running with github:NixOS/nixpkgs/nixpkgs-unstable channel
Describe the bug When i select in devenv.nix android.ndk.version = [] any of the 27.x releases as shown here: https://github.com/android/ndk/releases, devenv is telling that the version does not exist, even without telling which version it is seeing. I updated also to cmdLineTools.version = "12.0" but it did not help.
To reproduce
direnv allow
Make sure to include full logs and what you expected to happen.
Version https://devenv.sh 1.1.0