about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorArtturin2024-07-25 18:53:17 +0300
committerArtturin2024-07-25 22:08:49 +0300
commit1144d46f9510b8c31d0195e8049caa0df3eb3fec (patch)
tree74186b797f7e7fb273d8269404bd8f4a103102e5 /lib
parent5f2a6de6f9523b69954ce66a28e98760f6cd3439 (diff)
treewide: Rename android `sdkVer` and `ndkVer`
`sdkVer` conflicts with the old `sdkVer`(now `darwinSdkVersion` but that still uses `sdkVer` if set) used by darwin

This shouldn't be an issue but due to `pkgs/development/interpreters/python/cpython/default.nix`
running `lib.filterAttrs (n: v: ! lib.isDerivation v && n != "passthruFun")` on it's inputs (2 of them are darwin only)
the `throw "Unsupported sdk...` in `pkgs/top-level/darwin-packages.nix` will be triggered.

After this change `pkgsCross.armv7a-android-prebuilt.python3.pythonOnBuildForHost` won't fail with
`error: Unsupported sdk: 33`

Issue was bisected to 3cb23cec239d4f73bb1b51f26ac7599384fdadd6
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/examples.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix
index 178536efb009..d582ecba2bed 100644
--- a/lib/systems/examples.nix
+++ b/lib/systems/examples.nix
@@ -60,23 +60,21 @@ rec {
   armv7a-android-prebuilt = {
     config = "armv7a-unknown-linux-androideabi";
     rust.rustcTarget = "armv7-linux-androideabi";
-    sdkVer = "33";
-    ndkVer = "26";
     useAndroidPrebuilt = true;
   } // platforms.armv7a-android;
 
   aarch64-android-prebuilt = {
     config = "aarch64-unknown-linux-android";
     rust.rustcTarget = "aarch64-linux-android";
-    sdkVer = "33";
-    ndkVer = "26";
+    androidSdkVersion = "33";
+    androidNdkVersion = "26";
     useAndroidPrebuilt = true;
   };
 
   aarch64-android = {
     config = "aarch64-unknown-linux-android";
-    sdkVer = "33";
-    ndkVer = "26";
+    androidSdkVersion = "33";
+    androidNdkVersion = "26";
     libc = "bionic";
     useAndroidPrebuilt = false;
     useLLVM = true;