Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport 24.05] treewide: Rename android sdkVer and ndkVer #336577

Merged

Conversation

Artturin
Copy link
Member

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 3cb23ce

(cherry picked from commit 1144d46)## Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

`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 3cb23ce

(cherry picked from commit 1144d46)
Those attrs have been renamed and throwing is the best way to show it,
if we only warned then the user would only get an error like this `error: Unsupported sdk: 33`
from `pkgs/top-level/darwin-packages.nix`.

If someone wants to support multiple NixOS versions then they can simply
set both attrs. (`!args ? androidSdkVersion` is for that)

(cherry picked from commit 35e5943)
@github-actions github-actions bot added 6.topic: stdenv Standard environment 6.topic: lib The Nixpkgs function library labels Aug 22, 2024
@Artturin Artturin changed the title treewide: Rename android sdkVer and ndkVer [24.05] treewide: Rename android sdkVer and ndkVer Aug 22, 2024
@Artturin Artturin changed the title [24.05] treewide: Rename android sdkVer and ndkVer [backport 24.05] treewide: Rename android sdkVer and ndkVer Aug 22, 2024
@Artturin Artturin merged commit 592e7c3 into NixOS:release-24.05 Aug 26, 2024
24 of 26 checks passed
@Artturin Artturin deleted the backport-329964-to-release-24.05 branch August 26, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant