!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
3 Apr 2026
@hexa:lossy.networkhexathat changes things quite a bit23:24:09
@emilazy:matrix.orgemily I would be tempted to say you do one big-parallel build per M4 or else two per M4 Pro, say 23:24:20
@emilazy:matrix.orgemilyhttps://browser.geekbench.com/v6/cpu/compare/17442341?baseline=17440508 M4 vs. M4 Pro benchmark fwiw (though Nixpkgs is not Geekbench and also RAM differs)23:26:04
@emilazy:matrix.orgemilythe memory bandwidth helps it eke out a bit more even on single-core workloads23:26:33
@hexa:lossy.networkhexaI hear you23:27:46
@esperlily:matrix.orgEsperLily [she/her] is there any way to ask hydra to just try rebuilding a package that failed? something called edencommon failed on aarch64-darwin https://hydra.nixos.org/build/324463608 but the failure is just a timeout running tests, so it's a nondeterministic failure. The consequence of this is watchman now also needs to be built from source. Trying to build this stuff locally I also got the timeout failure, but I just tried to build edencommon on its own and it worked, so it'd be nice to have hydra just try again (and build watchman too) 23:49:37
@hexa:lossy.networkhexarestarted23:54:33
4 Apr 2026
@emilazy:matrix.orgemilythat failure happens a lot, we have a patch to increase the timeout but I guess it's not enough now somehow00:19:07
@emilazy:matrix.orgemilysomeone should probably look into it. some package maintainer of the package. certainly not me. I would never maintain that awful stack00:19:24
@esperlily:matrix.orgEsperLily [she/her] wow i have no idea what's going on but after updating nixpkgs my locally-compiled Vim binary (part of the MacVim package) is crashing during startup. Stepping through with the vim debugger it crashes at func s:StarSetf(ft), and the crash appears to be a bounds check in strcpy. The MacVim package did not change at all, only its inputs changed. I've verified that running the old binary with the new vimrc works fine, and running the new binary with the old vimrc crashes, so it really is a change to the binary compilation. poking at this with nix-diff I see that llvm was updated, also ncurses, also stdenv itself seems to have been updated and bash but it's a little hard to figure out what's actually relevant. I don't suppose there's been any change recently that seems relevant here? 01:00:22
@emilazy:matrix.orgemilymy guess is something screwy with the weird Xcode/Nixpkgs toolchain mix that ~nothing else does01:09:20
@emilazy:matrix.orgemilyeither that or LLVM exposing some UB in old Vim code01:09:40
@emilazy:matrix.orgemily(looks like MacVim is lagging behind CVEs again https://github.com/macvim-dev/macvim/issues/1634)01:09:50
@emilazy:matrix.orgemilywould probably need bisecting to say for sure what's going on but LLVM update seems like a solid bet01:10:26
@reckenrode:matrix.orgRandy EckenrodeWhat version of LLVM?01:14:13
@reckenrode:matrix.orgRandy EckenrodeSome of the earlier 21.1 releases had miscompilation issues on aarch64-darwin.01:14:35
@reckenrode:matrix.orgRandy EckenrodeThat should be fixed for a while though in Nixpkgs.01:14:48
@antifuchs:asf.computerantifuchs so, I was looking for virtualisation.darwin-builder in the nix-darwin and nixos docs, and neither seems to have that documented. how did you find that? 01:39:43
@ihar.hrachyshka:matrix.orgIhar Hrachyshka
$ pwd
/Users/ihrachyshka/src/nixpkgs

$ git grep darwin-builder doc | grep diskSize
doc/packages/darwin-builder.section.md:        virtualisation.darwin-builder.diskSize = 5120;
01:40:49
@antifuchs:asf.computerantifuchsAh, hm, maybe that’s just not in the online nix-darwin manual options list01:55:23
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/506470 fixes the ICU problem on Darwin.02:14:50
@esperlily:matrix.orgEsperLily [she/her] i'm not 100% positive but i think the MacVim.app/Contents/MacOS/Vim binary is in fact the vim binary produced by the classic vim compilation 03:22:26
@esperlily:matrix.orgEsperLily [she/her]the working MacVim was built with llvm-21.1.7, the broken one is built with llvm-21.1.803:23:26
@esperlily:matrix.orgEsperLily [she/her] * i'm not 100% positive but i think the MacVim.app/Contents/MacOS/Vim binary is in fact the vim binary produced by the classic vim compilation, meaning without Xcode's involvement 03:33:19
@esperlily:matrix.orgEsperLily [she/her]yeah the darwin-builder is actually documented in nixpkgs https://nixos.org/manual/nixpkgs/stable/#sec-darwin-builder-reconfiguring03:42:49
@esperlily:matrix.orgEsperLily [she/her]

i just confirmed that if I swap out stdenv.cc with 21.1.7 the crash goes away. I declared a new input nixpkgs-old which is pinned to the older nixpkgs that was working fine and added an overlay ```
(final: prev: {
macvim = prev.macvim.override {
stdenv = final.stdenvAdapters.overrideCC final.stdenv nixpkgs-old.legacyPackages.${system}.stdenv.cc;
};
})

04:09:55
@esperlily:matrix.orgEsperLily [she/her] *

i just confirmed that if I swap out stdenv.cc with 21.1.7 the crash goes away. I declared a new input nixpkgs-old which is pinned to the older nixpkgs that was working fine and added an overlay

(final: prev: {
  macvim = prev.macvim.override {
    stdenv = final.stdenvAdapters.overrideCC final.stdenv nixpkgs-old.legacyPackages.${system}.stdenv.cc;
  };
})
04:10:12
@esperlily:matrix.orgEsperLily [she/her] *

i just confirmed that if I swap out stdenv.cc with 21.1.7 the crash goes away. I declared a new input nixpkgs-old which is pinned to the older nixpkgs that was working fine and added an overlay

(final: prev: {
  macvim = prev.macvim.override {
    stdenv = final.stdenvAdapters.overrideCC final.stdenv nixpkgs-old.legacyPackages.${system}.stdenv.cc;
  };
})

and this one works without crashing

04:10:24
@esperlily:matrix.orgEsperLily [she/her]argh it failed again04:29:10
@reckenrode:matrix.orgRandy Eckenrode

Building ffmpeg 8 appears to be broken on Darwin. It’s trying to use patchelf ….

      > patching script interpreter paths in /nix/store/fvxp6blkrg3h37l348lb4f5aq3v7z67y-ffmpeg-headless-8.0.1
       > /nix/store/6ifjywcskbcx5mzy4g1gnygdzgfagfs8-stdenv-darwin/setup: line 267: patchelf: command not found
10:53:46

Show newer messages


Back to Room ListRoom Version: 6