NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.1k stars 13.4k forks source link

Update request: swift 5.8 → 5.10 #297655

Open ghishadow opened 5 months ago

ghishadow commented 5 months ago

Notify maintainers

@dtzWill @trepetti @dduan @trundle @stephank


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

stephank commented 5 months ago

I took a look at this recently, and I believe it's going to be tricky. It appears we can no longer bootstrap the compiler with swift-syntax support, and that means our builds lose support for certain Swift syntax constructs like regex literals.

It was announced a while back that the Swift compiler would start requiring a host Swift toolchain to build, and that's what we need to do. It's a similar situation to Rust in Nix. I don't know how difficult it is to set this up; maybe there's a way to use the official binaries.

Short term, we have a better chance of getting 5.9.2 merged, see #256956. I could really use some help figuring out the CMake installation issue. Could very well be the last hurdle, but I haven't been able to find the time.

dvtkrlbs commented 3 months ago

is there any update on this? I am trying to package swift project and it requires 5.10 and got across into this issue

reckenrode commented 1 month ago

Is it possible to keep Swift 5.8 around (possibly for Swift Concurrency backdeploy) and use that to bootstrap 5.10?

nixos-discourse commented 1 month ago

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

https://discourse.nixos.org/t/how-to-debug-nix-cache-misses/49151/4