Nix on macOS | 1147 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 182 Servers |
| Sender | Message | Time |
|---|---|---|
| 2 Dec 2025 | ||
| Doesn’t Postgres spawn a process per user? | 19:40:30 | |
| Is there any other shared memory type on macOS though | 19:55:51 | |
| POSIX shared memory. It’s what Apple recommends. | 20:02:05 | |
| https://developer.apple.com/forums/thread/719897?answerId=736261022#736261022 | 20:02:14 | |
| reading the postgres source and the issue emily linked, they alread default to mmap, but still need the sysv shared memory to detect which processes are attached to it (I guess that implies this is not possible in posix?) | 20:12:59 | |
| so I have an issue with users.users / users.knownUsers on nix-darwin; I'm trying to have nix-darwin create a user, but (after a bunch of swearing & reading the
| 20:36:16 | |
| (creating a home dir or anything else seems to have no effect on the "should be present" calculation) | 20:36:50 | |
| Redacted or Malformed Event | 20:37:12 | |
| Per the issue emily linked and the part I quoted, named POSIX semaphores are apparently more wasteful. There is a patch to implement the functionality using futexes on Darwin. No idea how well it works. | 20:37:37 | |
update: the user is missing a name attribute. without that, the check in https://github.com/nix-darwin/nix-darwin/blob/e95de00a471d07435e0527ff4db092c84998698e/modules/users/default.nix#L20 counts the user as not-intended-to-be-created | 20:45:24 | |
* update: the user doesn't have a matching name attribute. without that, the check in https://github.com/nix-darwin/nix-darwin/blob/e95de00a471d07435e0527ff4db092c84998698e/modules/users/default.nix#L20 counts the user as not-intended-to-be-created | 20:45:42 | |
| 3 Dec 2025 | ||
| The C++ bootstrap compiler can’t even use the 14.4 SDK. | 03:37:00 | |
| https://github.com/swiftlang/swift/pull/84413 | 03:37:01 | |
| I need to see if I can revert https://github.com/swiftlang/swift/pull/79186. Otherwise, that issue in 84413 prevents building against the 14.4 SDK. | 03:37:54 | |
| 03:38:08 | |
| Though. Hmm. I wonder if swift-driver works. | 03:38:43 | |
| Why isn’t it setting it up? | 03:38:50 | |
| Nope. I may have to try to revert that change. | 04:24:00 | |
I think I managed to revert the optimizer changes that cause this failure. The optimization pass moved to Swift, which broke the C++ bootstrap compiler. There have been some workarounds done in the Swift stdlib, but those don’t help when dealing with SDK swiftinterface files that have the same constructs. | 05:17:05 | |
| I am so happy I don’t have to rebuild LLVM every time while working on this …. | 05:17:48 | |
| Dammit, no. Let’s see if reverting the change in the stage 1 compiler works. | 05:19:18 | |
| It built! That’s a Swift compiler that supports macros, which should let it build the full compiler and SwiftPM. | 05:36:58 | |
| Unfortunately, install phase failed. I’ll fix that tomorrow. | 05:37:05 | |
| Redacted or Malformed Event | 05:42:46 | |
| Redacted or Malformed Event | 05:43:35 | |
| I'm getting these, when trying to build dovecot after a nixpkgs upgrade:
Package version hasn't been updated in ages. I can see that the SDK was updated. Last time it successfully build I was using | 05:55:30 | |
| There was also a change to enforce availability annotations. | 15:08:42 | |
| But the missing symbols appear to be internal to Dovecot. Something in its build is getting confused. | 15:09:11 | |
| fwiw there is a “mostly done just needs a little polish” update to 2.4 or whatever and I’m already using it | 20:40:34 | |
| this is the PR, if you want to see if it works for you: https://github.com/NixOS/nixpkgs/pull/410912 I do have my own changeset that I run on my server that has diverged a bit but only in the nixos module so it shoulndn’t be necessary here | 20:48:55 | |