!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1174 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org190 Servers

Load older messages


SenderMessageTime
1 Dec 2025
@emilazy:matrix.orgemilyanyway re: merging I was mostly just thinking that if Darwin is going to be a supported target the issues with the build being blocked on Darwin will be significantly mitigated, and it doesn't seem compelling to keep them separate in that case.17:38:12
@k900:0upti.meK900Well the expressions will share basically nothing17:39:33
@k900:0upti.meK900Because 95% of it is still Linux specific17:39:42
@samasaur:matrix.orgsamasaur
In reply to @reckenrode:matrix.org
The issue is more that our update plans involve removing the 14.4 SDK next year.
how terrible would it be to keep the 14.4 SDK around for swift bootstrapping? not to expose it to all of nixpkgs, but just for the bootstrap swift
17:41:17
@samasaur:matrix.orgsamasaurmy impression is that since the SDK rework, maintaining a specific version of the SDK is not inherently difficult, and all the actual challenges come from packages using that SDK17:42:33
@reckenrode:matrix.orgRandy EckenrodeWe could keep the version information around but not provide the attribute. Swift could build with a special stdenv using that SDK.17:44:52
@samasaur:matrix.orgsamasauryeah that's kinda what im thinking17:45:14
@samasaur:matrix.orgsamasaurbc a new SDK version is just a URL and hashes, right?17:45:32
@reckenrode:matrix.orgRandy EckenrodeThe major version is an argument to the SDK derivation. We would just need to keep the old SDK version files around for that.17:46:57
@emilazy:matrix.orgemilyI don't think we should have to rely on that kind of thing. I think we should just report this issue to upstream before planning for that…17:48:12
@emilazy:matrix.orgemilythere's no reason the bootstrap compiler couldn't digest macro definitions and then simply error out if they are ever used, right?17:48:33
@emilazy:matrix.orgemilyall we need is that the Swift macro machinery itself can be built without using stuff that uses macros – which is already a property they have to maintain by definition17:48:55
@reckenrode:matrix.orgRandy EckenrodeI don’t think upstream intends Darwin to be bootstrapped this way.18:00:51
@reckenrode:matrix.orgRandy EckenrodeIt’s simply not a supported feature. As soon as the parser hits a macro definition, it bails.18:02:04
@emilazy:matrix.orgemilyit doesn't seem like it should be hard to keep working, right? the macro machinery presumably already doesn't use much OS-specific stuff / fancy Swift features, so it's unlikely that any macros in the SDK will truly be required to build enough to process them18:04:55
@emilazy:matrix.orgemilyright, what I mean is that they could simply defer that error to the use site, for the bootstrap compiler18:05:09
@emilazy:matrix.orgemilyit seems very cheap to just report and see if they care or not18:05:20
@emilazy:matrix.orgemilyif it was working up until the 26 SDK then I imagine they might have interest in keeping it working18:05:33
@emilazy:matrix.orgemilywould be a lot cleaner than worrying about keeping an SDK around for years18:05:48
@emilazy:matrix.orgemilyespecially if we get to the point of "new LLVM chokes on the old SDK now" etc.18:05:59
@emilazy:matrix.orgemily(or more plausibly, new Swift chokes on Swift parts of the old SDK)18:06:17
@reckenrode:matrix.orgRandy Eckenrode The problem is Foundation reexports Observable. That makes import Foundation immediately fail because it hits macros right away. 18:06:44
@emilazy:matrix.orgemilythey won't have any way of knowing that it matters for someone to have it work without us letting them know after all18:06:47
@emilazy:matrix.orgemilyit surely can't be hard to just skip over macro definitions when bootstrapping right?18:07:13
@reckenrode:matrix.orgRandy EckenrodeThe parser has no idea without support. It needs swift-syntax, which is written in Swift.18:07:52
@emilazy:matrix.orgemily(I mean, maybe it can be, but the people working on the Swift bootstrap would know better than I :) )18:07:53
@reckenrode:matrix.orgRandy EckenrodeIf we hit that point, we can bootstrap from a binary distribution or a know good one.18:08:03
@reckenrode:matrix.orgRandy EckenrodeI think it’a one guy working on it:18:08:23
@reckenrode:matrix.orgRandy Eckenrode * 18:08:27
@reckenrode:matrix.orgRandy Eckenrode * 18:08:42

Show newer messages


Back to Room ListRoom Version: 6