6 Jul 2025 |
fiodor | Hi everyone. I'm trying to upgrade my setup to the latest nix-darwin, but I'm struggling with the migration due to system.activationScripts.extraUserActivation getting removed. I have some custom activation scripts which set up my dotfiles, etc. I cannot find anything that works as a replacement online. Can someone please help? | 10:16:20 |
toonn | There's Home-Manager's activation blocks, which sound more appropriate for dotfiles anyway. | 12:32:43 |
emily | you can use sudo in a system activation script if you really want to run some random code as a user | 12:41:13 |
emily | but yes, that's what Home Manager integration will do for you already, so I'd recommend using HM for this task | 12:41:23 |
| Cathal changed their display name from CJ to Cathal. | 17:17:20 |
7 Jul 2025 |
thefloweringash | For months my emacs has just been sometimes hanging whenever I run magit. Today I finally tracked it down. magit's commit action loads the commit message file, which runs normal-mode , which in my config hits go--is-go-asm , which loads ffap (presumably find-file-at-point), which then calls gcc -print-multiarch . This hits xcrun, which then infinitely invokes itself. The cause was having, in my PATH , the value /usr/bin/ instead of /usr/bin . This came from round-tripping via parse-colon-path which always adding a trailing slash to all returned path elements. I can even easily reproduce by running PATH=/usr/bin/:$PATH gcc in the shell environment. | 08:19:12 |
uep | There do seem to have been several opportunities to have not done something before the something that you eventually discovered was going wrong. | 10:49:41 |
Ben Sparks | obligatory XKCD: https://xkcd.com/1172/ | 11:06:39 |
Ben Sparks | * obligatory XKCDs: https://xkcd.com/1172/, https://xkcd.com/378/ | 11:07:01 |
antifuchs | In reply to @uep:matrix.org There do seem to have been several opportunities to have not done something before the something that you eventually discovered was going wrong. That’s the gamma knife model of incidents (: | 14:00:45 |
| colemickens 🏳️🌈 left the room. | 21:52:58 |
| Katalin 🔪 changed their display name from Katalin ⚧︎ to Katalin 🔪. | 23:28:20 |
8 Jul 2025 |
Zhaofeng Li | PSA about beta 3
If System Settings > Desktop & Dock > Displays have separate Spaces is disabled, WindowServer will crash at login time. (153570422) Workaround: Boot into Recovery, then mount the Data volume on your partition. Launch Terminal and run rm /Volumes/<Partition Name "Macintosh HD">/Users/<user name>/Library/Preferences/com.apple.Spaces.plist .
| 03:39:25 |
9 Jul 2025 |
| jonhermansen joined the room. | 01:17:51 |
Katalin 🔪 | they added an option to add a background to the menu bar in beta 3! Hallelujiah | 01:37:56 |
Zhaofeng Li | I think it was there in beta 2? | 05:14:59 |
prince213 | https://github.com/NixOS/nixpkgs/pull/423732 | 09:41:31 |
prince213 | First time bumping Xcode version | 09:41:50 |
Randy Eckenrode | In reply to @reckenrode:matrix.org I’m not rebasing on staging this week to focus on splitting up my branch. It’s time to get my wrapper changes up for review, bump the minimum to 14.0, and update the SDK and source releases to 15.5. I made some progress on this but not a lot. Progress will be slow this week. I’d like to get at least some of this stuff into the next staging cycle. | 11:57:02 |
Sarah Clark | I've been seeing OSError: AF_UNIX path too long pop up across several packages this week (checkPhase failures). I wonder if something changed recently to trigger this. | 17:12:33 |
emily | CVE fix relocating the build directory I would imagine | 17:13:17 |
emily | may ned the path shortening on macOS 🫠 | 17:13:36 |
Sarah Clark | Sounds plausible. | 17:14:12 |
Sarah Clark | So is there a better solution than disabling the failing test(s)? | 17:14:50 |
emily | you can change build-dir but it risks re-exposing you to CVEs | 17:16:56 |
emily | maybe you can convince the tests to use shorter paths | 17:17:07 |
11 Jul 2025 |
Axman6 | I think I've asked this before, but asking again because I ran into it again - there's currently no way to get a Universal python via Nix right? The one that macOS ships with (and IIRC the installer from python.org) can build universal stuff when it needs to compile C bits, but the nix provided ones can't. I need to create an executable using pyinstaller, which works fine on aarch64 and x86_64 when using the system python. I had looked into using lipo to combine binaries from the two arches into one, but something conflicts when they're joined (we embed an executable inside this other executable, and I think the two copies conflict in its unpacking, or something ... this sounds a lot like malware now I think about it [and I'm not convinced it's not]) | 01:33:38 |
Randy Eckenrode | Darwin support in nixpkgs is not really set up to do universal builds except in trivial cases (with no dependencies). | 01:37:56 |
Zhaofeng Li |
embed an executable inside this other executable
Oof, this will be a problem if you ever want to adopt app sandboxing. Also you have tried that it passes notarization, right?
| 01:41:49 |
Axman6 | the embedded executable is also signed, and seems to work fine | 03:29:16 |