!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
3 Apr 2026
@hexa:lossy.networkhexasplit brain on the spaces and many rooms I'm afraid. we need to upgrade them22:59:24
@samasaur:matrix.orgsamasaur what's that /clang in /var/folders/.../C? that's not temp files 22:59:32
@emilazy:matrix.orgemilybut that clang cache directory is very weird, kind of makes me think it's just some leftover garbage22:59:40
@emilazy:matrix.orgemily /C is caches iirc 22:59:56
@emilazy:matrix.orgemily

Provides the path to the user's cache directory. The directory will be created if it does not already exist. This directory is created with access permissions of 0700 and restricted by the umask(2) of the calling process and is a good location for user cache data as it will not be automatically cleaned by the system.

23:00:08
@reckenrode:matrix.orgRandy Eckenrode Lix uses $TMPDIR for dev shells. What is upstream Nix doing these days? (Though why would Hydra have dev shells?) 23:00:32
@hexa:lossy.networkhexasorry, I currently have lix on this box23:00:52
@reckenrode:matrix.orgRandy EckenrodeClang module cache.23:01:02
@hexa:lossy.networkhexafor reasons23:01:05
@emilazy:matrix.orgemily feel free to rm -rf /var/folders/*/*/C 23:01:09
@emilazy:matrix.orgemilyshould be safe23:01:17
@hexa:lossy.networkhexait's funny that all of them have a clang23:01:39
@emilazy:matrix.orgemilyand I'm guessing whatever used up the space there was one-off stuff rather than anything Nix builds are doing … oh … except … no sandbox23:01:41
@emilazy:matrix.orgemilyso maybe Clang builds are actually writing in there, haha23:01:45
@emilazy:matrix.orgemily perhaps we should point Clang at a different module cache dir in cc-wrapper or something 23:02:03
@hexa:lossy.networkhexayeah, no sandbox for darwin builds on hydra23:02:04
@emilazy:matrix.orgemily or maybe we can somehow override DARWIN_USER_CACHE_DIR 23:02:15
@emilazy:matrix.orgemilyfor builder users23:02:18
@emilazy:matrix.orgemily fwiw the cheap solution is probably just to do this in cron. probably with an extra /* at the end 23:08:26
@emilazy:matrix.orgemilyalso23:10:19
@samasaur:matrix.orgsamasaur could just remove /var/folders/* entirely, no? or at least remove the T at the same time 23:11:25
@emilazy:matrix.orgemily /var/db/diagnostics should be at least largely discardable I think (maybe sudo log erase --all will do it? I would be scared to just delete the files though). /var/db/SystemPolicyConfiguration I expect might be something funny about remembering Gatekeeper stuff for a trillion binaries from builds a day or something but that's just a guess. also completely separate but when comparing cores for base vs. pro CPUs remember that those 10 cores are split between P and E cores although Apple Silicon E cores are still plenty fast. 23:12:45
@emilazy:matrix.orgemily just e.g. if you divide it up 5 / 5 for big-parallel or something it might not be great 23:13:44
@reckenrode:matrix.orgRandy Eckenrode I think I have a fix for the dotnet crash on macOS 26.4. I’m building darwin.ICU with a custom version suffix for the icu namespace. Since the C++ API isn’t ABI stable anyway, this shouldn’t break anything. 23:13:59
@emilazy:matrix.orgemily should we maybe just expose the SDK ICU stubs? I think I've seen stuff call into it even before Tahoe. in general building stuff that the system frameworks can plausibly use seems like it's a lot of latent potential pain similar to the libc++ fun we have 23:15:12
@emilazy:matrix.orgemilyesp when we only use it for stuff that needs the weird Apple fork23:15:29
@reckenrode:matrix.orgRandy Eckenrode System ICU expects to read from /usr/share, which is a pain with the sandbox. 23:15:33
@reckenrode:matrix.orgRandy Eckenrode Also, Linux will need darwin.ICU for Swift. 23:15:44
@emilazy:matrix.orgemily though doesn't this imply that our own libxml2 will also clash? 🫠 23:15:49
@emilazy:matrix.orgemily (allow file-read* (subpath "/usr/share/locale")) 23:16:09

Show newer messages


Back to Room ListRoom Version: 6