Nix on macOS | 1184 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 193 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Apr 2026 | ||
| 01:24:09 | ||
| Got network_cmds building finally. It ended up being easier to restore the XNU headers build than to try to keep scraping structs out of files. Unfortunately, the XNU headers still have to be copied because some conflict with the SDK. | 04:03:48 | |
| @reckenrode:matrix.org i finally got to compile your swift-update-mk2 branch to play with hammerspoon, but even with your settings.json and the posted command for swbuild, it still tries to run xcodebuild -dumpPIF almost immediately. I tried a few different things and playing with DEVELOPER_DIR to get to where you were but no luck. Have you got a branch from your experiments? It could save me some head-desk time 😀 | 12:03:14 | |
| * @reckenrode:matrix.org i finally got to compile your swift-update-mk2 branch to play with hammerspoon, but even with your settings.json and the posted command for swbuild, it still tries to run xcodebuild -dumpPIF almost immediately. I tried a few different things with the build service location and playing with DEVELOPER_DIR to get to where you were but no luck yet. Have you got a branch from your experiments? It could save me some head-desk time 😀 | 12:13:48 | |
| * @reckenrode:matrix.org i finally got to compile your swift-update-mk2 branch to play with hammerspoon, but even with your settings.json and the posted command for swbuild, it still tries to run xcodebuild -dumpPIF almost immediately. I tried a few different things with the build service location and playing with DEVELOPER_DIR to get to where you were but no luck yet. Have you got a branch from your experiments? It could save me some head-desk time 😀 Edit: just having a bad feeling - you didn't shim the whole xcbbuildservice for this, right?... | 12:17:18 | |
| * @reckenrode:matrix.org i finally got to compile your swift-update-mk2 branch to play with hammerspoon, but even with your settings.json and the posted command for swbuild, it still tries to run xcodebuild -dumpPIF almost immediately. I tried a few different things with the build service location and playing with DEVELOPER_DIR to get to where you were but no luck yet. Have you got a branch from your experiments? It could save me some head-desk time 😀 Edit: just having a bad feeling - you didn't custom shim the whole xcbbuildservice for this, right?... | 12:17:43 | |
I was using my branch without any changes, the provided settings.json, and the command-line as posted. I don’t think I’ve changed anything in how Swift Build is built in the meantime. I’m also pretty sure I tried building it in a derivation and not locally where it might pick up the installed xcodebuild by accident, but I can’t recall exactly. | 12:59:52 | |
Unrelated, but autoreconfHook is turning into autoBreakDarwinHook. | 13:00:30 | |
| Anything that uses libiconv is getting broken because it has questionable ideas about how libiconv should behave. (While this issue is technically a behavioral difference and possibly a bug in Apple’s implementation, it’s not clear how likely it is a problem in practice.) | 13:01:20 | |
| I wonder if we should apply the UTF-8-MAC patch to GNU libiconv and just use that. The ABI compatibility stuff should still be there in our derivation. | 13:06:16 | |
| I’m currently doing a rebuild with the patch applied. I’m rebuilding all Darwin source releases plus .NET plus vulkan-caps-viewer, which involves building GJC, node, etc. | 16:01:05 | |
| system.defaults.customUserPreferences really should be a homemanager setting. | 20:08:18 | |
| Or how can that be set with different values for different users? | 20:09:17 | |
| I'm digging into this and I don't think we can actually use just swbuild. Here's my messy hammerspoon on your branch https://github.com/viraptor/nixpkgs/commit/ec6761783b0a57ed786bfc14df90c5a1ebb69b03 but in a sandbox it still fails on trying to access xcodebuild. It seems to be an unconditional thing in https://github.com/swiftlang/swift-build/blob/22b0c927248b2b4a4217fc0c72aed293b2c68df1/Sources/SWBBuildService/Messages.swift#L211 There's also no .pbxproj parser linked anywhere in that project that I can find. I think swbuild still relies on xcodebuild in the end, so I'll need to fix up the old facebook one 😢 | 20:56:46 | |
What does -dumpPIF do? Is there a compromise where the Facebook one gains the ability to do that? | 21:21:33 | |
| This just makes me hate Swift more. It’s fake open. | 21:23:46 | |
| It seems to essentially rewrite the .xcodeproj into a json form. And yeah, I'm just looking into adding that. There are some elements that are not parsed properly for swift too, so it's going to be "fun". | 21:26:43 | |
| (especially since I haven't done C++ in like 2 decades...) | 21:28:32 | |
| If we just need to reserialize it, can we use one of the existing tools to dump the project unto JSON? | 21:29:30 | |
| * | 21:29:38 | |
| * | 21:30:36 | |
| Not sure what you mean by existing libraries in this context. But it looks like the translation to .pif is relatively trivial. Just waiting for all-the-things to rebuild due to xcbuild changing 😒 I'll submit something this weekend. | 22:36:35 | |
| I mean like use one of the existing Python pr Ruby libraries to parse the project and dump it out in the correct JSON format. It avoids needing to mess with xcbuild and go through lots of rebuilds. | 22:50:09 | |
| Otherwise, if you do need to modify xcbuild, I would suggest creating a temporary xcbuild2 package that you can modify without doing lots of rebuilds. | 22:50:52 | |
| * | 22:51:00 | |
| * | 22:51:37 | |
| * | 22:51:44 | |
| Right. I was just thinking about how much that can be untangled from the apple sdk a bit. The strict path lookup from various things makes it hard (xcode-select and then running things under that path). But it's ok, we'll get there. | 22:53:02 | |
| I would just patch that stuff out. Swift Build already requires a ton of patching due assuming FHS. | 22:56:43 | |
| 18 Apr 2026 | ||
| Looks like KosmicKrisp is going to be getting tessellation soon-ish. Some ground work MRs have landed recently. Mesa 26.2 should be interesting. | 00:03:20 | |