Skip to content

python3Packages.xgrammar: add aarch64-darwin support#424179

Closed
ferrine wants to merge 1 commit intoNixOS:masterfrom
ferrine:xgrammar
Closed

python3Packages.xgrammar: add aarch64-darwin support#424179
ferrine wants to merge 1 commit intoNixOS:masterfrom
ferrine:xgrammar

Conversation

@ferrine
Copy link
Contributor

@ferrine ferrine commented Jul 10, 2025

depends on #424177, will rebase after that one merged

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (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, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@nix-owners nix-owners bot requested a review from natsukium July 10, 2025 23:10
@nixpkgs-ci nixpkgs-ci bot added 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: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 10, 2025
@acid-bong
Copy link
Contributor

Rename the PR according to conventions

@ferrine ferrine changed the title Xgrammar python3Packages.xgrammar: add aarch64-darwin support Jul 13, 2025
@ferrine ferrine mentioned this pull request Jul 13, 2025
4 tasks
@ferrine
Copy link
Contributor Author

ferrine commented Jul 15, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 424179
Commit: 60228febba7fd0ea344ecc62b264f2a0b8b60825


aarch64-darwin

✅ 8 packages built:
  • python312Packages.mlx-lm
  • python312Packages.mlx-lm.dist
  • python312Packages.xgrammar
  • python312Packages.xgrammar.dist
  • python313Packages.mlx-lm
  • python313Packages.mlx-lm.dist
  • python313Packages.xgrammar
  • python313Packages.xgrammar.dist

Copy link
Contributor

@sarahec sarahec left a comment

Choose a reason for hiding this comment

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

Please remove mlx-lm from this PR since you have a proper PR waiting for it.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Jul 16, 2025
@sarahec
Copy link
Contributor

sarahec commented Jul 17, 2025

Needed to complete nixpkgs-review on #424177

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but there is one more line with a package, the ; is not needed

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 26, 2025
@sarahec
Copy link
Contributor

sarahec commented Jul 27, 2025

#424177 merged, shall we rebase this over current master?

@sarahec
Copy link
Contributor

sarahec commented Jul 27, 2025

This is showing up in nixpkgs-review of #424873

@ferrine
Copy link
Contributor Author

ferrine commented Jul 29, 2025

will do soon

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 1, 2025
@acid-bong
Copy link
Contributor

Needs a reformat tho

@ferrine
Copy link
Contributor Author

ferrine commented Aug 2, 2025

looks like I had an outdated nixfmt

@ferrine ferrine force-pushed the xgrammar branch 2 times, most recently from ecd1634 to 4d2256c Compare August 2, 2025 08:56
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Aug 2, 2025
@ferrine
Copy link
Contributor Author

ferrine commented Aug 20, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 424179
Commit: 62454fbb51acbd3551d4db4138ab23c1e3a3e8d4


aarch64-darwin

✅ 4 packages built:
  • python312Packages.xgrammar
  • python312Packages.xgrammar.dist
  • python313Packages.xgrammar
  • python313Packages.xgrammar.dist

@sarahec
Copy link
Contributor

sarahec commented Aug 20, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 424179
Commit: 62454fbb51acbd3551d4db4138ab23c1e3a3e8d4

@sarahec
Copy link
Contributor

sarahec commented Aug 20, 2025

@Aleksanaa can you take one more look? Thanks.

@sarahec sarahec requested review from Aleksanaa and sarahec August 20, 2025 16:33
@sarahec
Copy link
Contributor

sarahec commented Aug 20, 2025

Looks OK to me, but I want someone with more Darwin on Nix experience.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 20, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. and removed 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. labels Aug 31, 2025
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

LGTM

@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 31, 2025
@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 10, 2025
@ferrine
Copy link
Contributor Author

ferrine commented Sep 11, 2025

just rebased, any other changes needed to go ahead?

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 11, 2025
Update pkgs/development/python-modules/xgrammar/default.nix

Co-authored-by: Sarah Clark <seclark@nextquestion.net>
@sarahec
Copy link
Contributor

sarahec commented Sep 12, 2025

It looks like other PRs have fixed xgrammar on Darwin (x86_64 and aarch64) and this can be closed. See #441270

@ferrine
Copy link
Contributor Author

ferrine commented Sep 14, 2025

Great

@ferrine ferrine closed this Sep 14, 2025
@ferrine ferrine deleted the xgrammar branch September 14, 2025 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any 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.

6 participants