Skip to content

python3Packages.wrapPython: use pkgsBuildTarget.makeWrapper by default#481907

Draft
doronbehar wants to merge 2 commits intoNixOS:masterfrom
doronbehar:pkg/wrapPython@cross
Draft

python3Packages.wrapPython: use pkgsBuildTarget.makeWrapper by default#481907
doronbehar wants to merge 2 commits intoNixOS:masterfrom
doronbehar:pkg/wrapPython@cross

Conversation

@doronbehar
Copy link
Contributor

Things done

Solve #211340 . When merged against branch master, this works for yaml-merge edited in this commit too.

  • 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.

@doronbehar doronbehar requested a review from Artturin January 20, 2026 10:13
@doronbehar
Copy link
Contributor Author

A reproducer for the eval error:

nix build -Lf. --argstr system aarch64-darwin pkgsStatic.buildPackages.python3Packages.wrapPython --show-trace

Very peculiar why this happens only for Darwin...

…ith meson

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@doronbehar doronbehar requested a review from emilazy January 20, 2026 12:48
@doronbehar
Copy link
Contributor Author

A reproducer for the eval error:

nix build -Lf. --argstr system aarch64-darwin pkgsStatic.buildPackages.python3Packages.wrapPython --show-trace

Very peculiar why this happens only for Darwin...

Fixed. CC @emilazy as I see you edited the apple-sdk file and should be able to understand if I fixed it sensibly.

@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. 6.topic: python Python is a high-level, general-purpose programming language. labels Jan 20, 2026
@emilazy
Copy link
Member

emilazy commented Jan 20, 2026

Doesn’t look right to me, we need the non‐bootstrap SDK even for static builds. I don’t immediately follow exactly what’s pulling in extra dependencies here, but this probably needs individual packages adjusted with bootstrap logic or handling in pkgs/stdenv/darwin. cc @NixOS/darwin-core

@doronbehar
Copy link
Contributor Author

Doesn’t look right to me, we need the non‐bootstrap SDK even for static builds. I don’t immediately follow exactly what’s pulling in extra dependencies here, but this probably needs individual packages adjusted with bootstrap logic or handling in pkgs/stdenv/darwin. cc @NixOS/darwin-core

OK I understand. It may be that the solution proposed for wrapLua here:

Can work for us too. You should know though that with this PR pkgsStatic.bash builds fine on aarch64-darwin. I didn't test it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants