Skip to content

swift: 6.3.3 -> 6.4.0 - #574002

Merged
reckenrode merged 82 commits into
NixOS:stagingfrom
reckenrode:swift-6.4-update
Oct 22, 2026
Merged

reckenrode merged 82 commits into
NixOS:stagingfrom
reckenrode:swift-6.4-update

Conversation

@reckenrode

@reckenrode reckenrode commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Attempt number two. Previous attempt was #573476. Trying to manage multiple base branches was causing a mess.

https://www.swift.org/blog/swift-6.4-released/

This PR is draft until I can sort out the C++ interop issue on Darwin. There were some dependent PRs (see the original), but they have been merged or included in this PR.

Resolved issues

Fixes #242779
Fixes #331943
Fixes #570491

Things done

Automation Disclosure

The previous was flagged by github-ci, but I did not use LLM assistance to prepare this PR nor did I use it to prepare any other of my PRs. I assume it was flagged due to the above-mentioned mess I made of the previous one.

@nixpkgs-ci nixpkgs-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for contributing to the documentation.

Follow the documentation style guide, especially:

  • Show, don’t tell. Start with a minimal working example. Explain after the code.
  • Avoid meta-commentary. Don’t write "This section explains how to…".
  • Use present tense, imperative mood, and active voice. For example: "Run the command," not "The user should run the following command."
  • Avoid vague references like "this" when the referent is unclear. Write "This command creates a folder," not "This will create a folder."
  • Be direct. Avoid "should", "might", "typically", and "usually".
  • Cut filler words like "simply", "just", "easily", and "basically". Use "to" instead of "in order to".

For larger changes, such as adding or removing whole sections, ask the NixOS documentation team for review.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 8.has: changelog This PR adds or changes release notes 6.topic: stdenv Standard environment labels Oct 14, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 8.has: documentation This PR adds or changes documentation label Oct 14, 2026
@reckenrode reckenrode changed the title Swift 6.4 update swift: 6.3.3 -> 6.4.0 Oct 14, 2026
@reckenrode
reckenrode force-pushed the swift-6.4-update branch 2 times, most recently from 4d1d753 to a8c59b2 Compare October 14, 2026 19:53
@ap-1 ap-1 mentioned this pull request Oct 15, 2026
7 of 13 tasks
wegank pushed a commit to loongson-community/nixpkgs that referenced this pull request Oct 15, 2026
Swift on aarch64-linux is failing to build on Hydra. The fix is
switching to LLD. Since NixOS#574002
will be doing that, it’s not worth the workarounds to avoid rebuilds
when Swift will be updated and the problem resolved soon.

Hydra failure: https://hydra.nixos.org/build/349228350
@reckenrode
reckenrode force-pushed the swift-6.4-update branch 10 times, most recently from cbe90c0 to 1f3cccf Compare October 17, 2026 19:58
This is an update script that can be sequenced after other update
scripts to update a package’s `swiftpmDeps`.
The location of build artifacts differs depending on whether SwiftPM is
using its native engine or Swift Build. Since Swift Build is the default
in SwiftPM 6.4, that breaks packages relying on the old layout.
It’s deprecated, but the Swift Build build system is not working.
The version in `pyproject.toml` does not match the Anki version.
Swift 6.4 propagates the 27.0 SDK, which drops support for deployment
targets older than 12.0. Using the platform triple lets us pick up the
correct version for the default deployment target in Nixpkgs.
Swift 6.4 propagates the 27.0 SDK, which switches the implementation of
`@State` to a macro. The macros are not included in the SDK and require
another source such as apple-open-macros.
Swift 6.4 propagates the 27.0 SDK, which switches the implementation of
`@State` to a macro. The macros are not included in the SDK and require
another source such as apple-open-macros.
@reckenrode
reckenrode added this pull request to the merge queue Oct 22, 2026
Merged via the queue into NixOS:staging with commit 10b5819 Oct 22, 2026
27 checks passed
@reckenrode
reckenrode deleted the swift-6.4-update branch October 22, 2026 03:10
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Stdenv Oct 22, 2026
@Brian-ED Brian-ED mentioned this pull request Nov 6, 2026
13 tasks
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574/152

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. 6.topic: stdenv Standard environment 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Archived in project
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants