Nix on macOS | 1135 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 24 Oct 2025 | ||
| Does upstream Firefox link against the system libc++? | 11:14:36 | |
| firefox-bin-unwrapped: (their build)
| 11:16:43 | |
| our build:
| 11:17:27 | |
| They both are. I hope it’s not that change then. | 11:19:40 | |
| I have an alternative path to explore (adding a lot of debug messages in their png encoder to catch what happens there) but I'm lazy and want to bisect first. The crash is from access to an invalid memory address, and the code in question is:
The last line crashes. Either Initially thought it's the new 144 version but 1) their crash reporter database caught some failures on 140 and 2) no relevant changes in the PNG encoder code of theirs that I could spot. | 11:33:41 | |
| I wonder if rosetta 2 can/should be worked into stdenv.*Platform.{canExecute, selectEmulator} | 16:35:30 | |
| or it's best called 'outside' for the whole nix-build process | 16:36:09 | |
| I think it can | 16:47:50 | |
| I saw an example before | 16:47:55 | |
| It is possible to set it up as an emulator in nixpkgs. I have started to do it a few times then stopped because it seems pointless. | 16:49:02 | |
Not many things use emulators. canExecute is not about emulation, so it doesn’t help with tests when cross-compiling. | 16:50:01 | |
| Intel support in nixpkgs is (very probably) being dropped for 26.11, which likely means July next year. It doesn’t seem worth the effort to develop new features for Intel or Rosetta 2 just to remove them after 26.05 is released. | 16:52:54 | |
| oh I thought it would last a couple more years | 16:55:38 | |
| yeah not much point to add something after 25.11 that gets dropped by 26.05 lol | 16:56:07 | |
| https://github.com/NixOS/nixpkgs/pull/415566 | 16:56:40 | |
| macOS 27 is dropping hardware support. macOS 28 is dropping Rosetta 2 except for some unspecified compatibility intended for games. | 16:57:37 | |
| The ecosystem appears to be running away from it already. | 16:57:54 | |
| Rust demoted it to tier 2. The GitHub runner was pulled then restored, but it is limited to macOS 15. Who knows for how long. Once it’s gone, Intel support will probably start bitrotting. | 16:59:23 | |
| From the nixpkgs side, x86_64-darwin is the slowest platform to build. Being able to drop it will free up builders to build aarch64-darwin, which should make cycles go faster. | 17:00:23 | |
| 18:00:15 | ||
| the name looks right, although i suppose i didn't actually check to make sure there wasn't some hidden character or some typo i just didn't see. i really don't know why xcrun is printing a warning about that with the nixpkgs SDK when the Xcode SDK has what looks like the exact same key. Does Swift Build care about that particular key? My bigger concern is what I mentioned in the Nixpkgs / NixOS contributions room, which is that when I try to use Xcode to build a project with the nixpkgs SDK (not Xcode-in-nixpkgs but | 20:08:59 | |
/usr/bin/xcodebuild will probably indirect through $DEVELOPER_DIR? | 20:18:41 | |
so is probably calling into xcbuild.xcrun etc. | 20:18:54 | |
/usr/bin/xcrun produces the same warning | 20:19:24 | |
oh wow what, /usr/bin/xcrun actually invokes xcbuild.xcrun? | 20:20:19 | |
everything in /usr/bin is just a stub that looks up the current developer directory | 20:20:33 | |
but xcrun -find xcrun doesn't find anything | 20:20:33 | |
| yeah it's a stub that looks it up with the xcrun machinery. xcrun should be the one thing that isn't a stub | 20:20:46 | |
| 20:21:50 | |
I think it recurses if there's another xcrun. | 20:22:08 | |