!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
4 Jan 2026
@vcunat:matrix.orgvcunatAlso, the machine did manage to succeed the whole build once during my debugging 😅17:00:42
@vcunat:matrix.orgvcunat

Could it be this log line?

XprotectService: [com.apple.xprotect:xprotect] File /nix/var/nix/builds/nix-46977-2307007369/man-db-2.13.1/src/.libs/whatis failed on loadCmd /nix/store/lkgb48k0pifhrknkmhgc1379i2aa8r9a-man-db-2.13.1/lib/man-db/libmandb-2.13.1.dylib (loadCmd resolved to: (path not found), bundleURL: (null))
17:12:55
@reckenrode:matrix.orgRandy Eckenrode That seems like DYLD_LIBRARY_PATH isn’t working. 17:14:40
@vcunat:matrix.orgvcunatAt the very least it looks like the build system is trying to run some executables incorrectly wrapped.17:14:48
@vcunat:matrix.orgvcunatI see a few others like that.17:14:56
@vcunat:matrix.orgvcunat(and I wasn't doing anything else myself during that time)17:15:12
@vcunat:matrix.orgvcunatIn general these path shenanigans are why I prefer to run most tests after the installation step (well, on Linux).17:16:40
@vcunat:matrix.orgvcunatThere's still no explanation about the non-determinism of this.17:18:20
6 Jan 2026
@spewdins:beeper.comspewdins

Hi.

I need to use wayland on macOS.
I am building a wayland compositor for macOS.
Thus, I need libwayland, and wayland scanner, protocols. This pr I recently did should likely fix macOS builds of libwayland.

https://github.com/NixOS/nixpkgs/pull/477359/files#diff-cf867da35ed61431a969f5710278d34b932bd1d61ab9e52befae6ea0f69879be

but, I am not certain I've properly made the change as others might not like it.
Can somebody help me here?

06:14:53
@emilazy:matrix.orgemilyhave you tried upstreaming it?06:29:50
@emilazy:matrix.orgemilywe don't like to carry big/invasive patches downstream like this06:30:03
@emilazy:matrix.orgemilythey inevitably bitrot and this sort of thing should really go through upstream code review06:30:20
@spewdins:beeper.comspewdins

uh well, the upstream mr from gitlab is what the darwin.patch is generated from
https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/481/diffs

06:50:18
@spewdins:beeper.comspewdinsso, it will be 1:1 if the mr is merged right now, to upstream wayland in its current state06:50:47
@spewdins:beeper.comspewdins

any other changes from mr481 could be generated again to replace darwin.patch with the updated mr changes from mr481.

and, if it does become merged, we could always just remove the patch anyway

06:52:22
@spewdins:beeper.comspewdins I guess, in this case, I'm fixing previous bitrot 07:03:04
@raitobezarius:matrix.orgraitobezarius Is there macOS folks who could take a look at https://github.com/NixOS/nixpkgs/pull/476848 ? 10:09:53
@qyliss:fairydust.spaceAlyssa RossNo it won't, it'll be 1:1 to an unmerged upstream PR16:05:29
@qyliss:fairydust.spaceAlyssa RossThe current situation is not really sustainable. Wayland is going to keep breaking on macOS. Somebody who wants it needs to actually work with upstream to figure out how to get that MR merged.16:06:01
@emilazy:matrix.orgemilyyeah, macOS is only going to have a healthy Wayland ecosystem if libwayland upstream actually builds17:52:10
@emilazy:matrix.orgemilyif it's important to you then it's better to be the maintainer of Darwin support in libwayland than the maintainer of Darwin support in libwayland in Nixpkgs17:52:32
@emilazy:matrix.orgemilyeven if we merged the patch, it'll inevitably break on updates, and people aren't going to want to block Linux on that17:52:55
@spewdins:beeper.comspewdinsMakes sense. I understand the reasoning there23:58:59
7 Jan 2026
@reckenrode:matrix.orgRandy Eckenrode Does by-name require the pname to match the folder name? 01:00:19
@reckenrode:matrix.orgRandy Eckenrode A lot of Swift packages are named swift-foo. I’d like to put them in fo/foo because otherwise sw ends up very full. 01:00:42
@reckenrode:matrix.orgRandy EckenrodeJust answered my own question. The folder name becomes the package name in nixpkgs.01:02:31
@reckenrode:matrix.orgRandy Eckenrode * 01:02:42
@reckenrode:matrix.orgRandy Eckenrode It appears that Swift SDKs are just a sysroot named foo.sdk. 03:23:55
@emilazy:matrix.orgemily "New attribute names should be the same as the value in pname." 04:56:18
@emilazy:matrix.orgemily(https://github.com/NixOS/nixpkgs/tree/master/pkgs)04:56:23

There are no newer messages yet.


Back to Room ListRoom Version: 6