Skip to content

androidndkPackages_{21,23,24,25,26}: drop#434649

Merged
numinit merged 2 commits intoNixOS:masterfrom
emilazy:push-nopwsoqpvuln
Aug 18, 2025
Merged

androidndkPackages_{21,23,24,25,26}: drop#434649
numinit merged 2 commits intoNixOS:masterfrom
emilazy:push-nopwsoqpvuln

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Aug 18, 2025

@numinit Hello! I would appreciate your assistance in my insatiable quest to delete end‐of‐life compilers. These NDKs not only depend on EOL LLVM versions but they’re also EOL themselves according to Google so this is kind of a double treat for me.

I don’t have much Android experience, though, so let me know if the NDK bump to the latest LTS here makes sense, or if we should just jump to the latest stable, or what, and if we should be bumping the SDK at the same time or not. I have not really tested any of this. Let me know if you want a release note too.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@emilazy emilazy requested a review from numinit August 18, 2025 06:02
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 6.topic: lib The Nixpkgs function library labels Aug 18, 2025
@numinit
Copy link
Contributor

numinit commented Aug 18, 2025

Oh yes, these are quite cursed and I was strongly considering nuking them from orbit anyway but didn't get it in time for 25.05.

This is a good first step, I have been somewhat passively looking into moving them all into androidenv since we would be able to automatically figure out which is the LTS based on Android repo metadata, so there would be no more version hardcoding, just LTS and latest, as this PR informally formalizes.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 18, 2025
Copy link
Contributor

@numinit numinit Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go 35 (Android 15) for all these, this basically defines the latest native ABI level the Android SDK can use and doesn't preclude compatibility.

With 33 or 35 on my relatively recent phone:

$ NIXPKGS_ALLOW_UNFREE=1 nom-build -A pkgsCross.aarch64-android-prebuilt.hello
<wait for it>
$ adb push result/bin/hello /data/local/tmp
result/bin/hello: 1 file pushed, 0 skipped. 214.6 MB/s (59032 bytes in 0.000s)
$ adb shell /data/local/tmp/hello
Hello, world!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 18, 2025
@emilazy emilazy force-pushed the push-nopwsoqpvuln branch from 016d4f8 to 5381f4d Compare August 18, 2025 15:52
@emilazy
Copy link
Member Author

emilazy commented Aug 18, 2025

LTS + latest sounds like a good policy to me. Always in favour of things that will reduce references to old toolchains.

@nixpkgs-ci nixpkgs-ci bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Aug 18, 2025
@numinit numinit merged commit 4b4e6ac into NixOS:master Aug 18, 2025
27 of 30 checks passed
@emilazy emilazy deleted the push-nopwsoqpvuln branch August 18, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: lib The Nixpkgs function library 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants