!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
19 Jan 2026
@saiko:knifepoint.netKatalin 🔪 though ime that's sorta broken on 5.10, or at least I didn't get it to work when I built 5.10 for bootstrapping 6.x on gentoo 20:15:30
@samasaur:matrix.orgsamasaurthe new issue is that 5.10 is failing on darwin now with a crash in the bootstrapped swiftc20:16:13
@samasaur:matrix.orgsamasauron staging-next20:16:27
@reckenrode:matrix.orgRandy EckenrodeI think libstdc++ is the intended C++ stdlib on Linux. If we built against libc++, we couldn’t interop with anything in the default package set.20:16:40
@reckenrode:matrix.orgRandy EckenrodeSwift can’t target multiple C++ implementations for interop. You have to pick one when building the compiler.20:17:32
@saiko:knifepoint.netKatalin 🔪 yeah', that's true. I thought about having a swiftStdenv of some kind which would select the correct compiler/STL but you would still have to compile packages you wanted to use from swift with that. so yeah. not ideal. scratch that 20:19:12
@reckenrode:matrix.orgRandy EckenrodeGiven that Swift is broken upstream by GCC 15, I may just land working Darwin support with enough Linux to get to the point of failing.20:19:18
@reckenrode:matrix.orgRandy EckenrodeThat’s how it is today (but for other reasons).20:20:04
@reckenrode:matrix.orgRandy Eckenrode I do provide a swiftPackages.stdenv in the rewrite, but it’s just a clangStdenv because I’m not even wasting my time building with GCC. 20:20:28
@samasaur:matrix.orgsamasaurthat would be great (from my end at least), given that the existing upstream 5.10 is in maintenance mode only so to speak20:20:56
@reckenrode:matrix.orgRandy EckenrodeI could also make Swift propagate Clang and support regular stdenvs. I’m not super thrilled about that, but it would avoid misuse.20:21:02
@saiko:knifepoint.netKatalin 🔪 yeah, and for bidirectional interop you do need clang anyway 20:21:06
@saiko:knifepoint.netKatalin 🔪 or swift clang, even 20:21:19
@reckenrode:matrix.orgRandy EckenrodeYou lose some features, but it works with regular Clang.20:21:37
@reckenrode:matrix.orgRandy Eckenrode Anyway, after fighting with sqlite, I’m finally back at a Swift environment based on staging from Sunday. Now I just need to figure out a way to hack in prebuilts. 20:22:15
@saiko:knifepoint.netKatalin 🔪 oh cool, is that new? last time I tried it errored on some part of the generated header 20:22:25
@saiko:knifepoint.netKatalin 🔪 with c++ interop, that is 20:23:09
@reckenrode:matrix.orgRandy EckenrodeDo you have an example I can test?20:24:00
@saiko:knifepoint.netKatalin 🔪 oof, not a ready one 20:25:26
@saiko:knifepoint.netKatalin 🔪 I'd have to strip down The Project 20:25:33
@samasaur:matrix.orgsamasaurthere is a cxx-interop example in nixpkgs i think?20:25:38
@samasaur:matrix.orgsamasaurif that is what you're looking for20:25:44
@samasaur:matrix.orgsamasaurthough a simplistic one20:25:47
@reckenrode:matrix.orgRandy EckenrodeSimple is fine. I just want to confirm it works.20:27:46
@saiko:knifepoint.netKatalin 🔪 actually, of course I have something 20:28:33
@saiko:knifepoint.netKatalin 🔪 hold on 20:28:37
@saiko:knifepoint.netKatalin 🔪 I literally test for this in Meson 20:28:43
@samasaur:matrix.orgsamasaur the nixpkgs one is at pkgs/development/compilers/swift/cxx-interop-test/default.nix, exposed at swift.tests.cxx-interop-test though that second fact probably isn't helpful to you anymore 20:29:13
@saiko:knifepoint.netKatalin 🔪 https://github.com/dblsaiko/meson/blob/d4d45660ca56631f7c628810e2c3579e3adf0497/mesonbuild/interpreter/interpreter.py#L1560 20:29:36
@saiko:knifepoint.netKatalin 🔪 oh that's not too useful without the actual arg list 20:30:01

Show newer messages


Back to Room ListRoom Version: 6