!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
4 Apr 2026
@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
19 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:22:35
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:22:35
@0x4a6f:matrix.org[0x4A6F] joined the room.19:23:06
@nbardiuk:matrix.orgnazarii joined the room.19:24:29
@casey:hubns.netcasey © joined the room.19:27:39
@elvishjerricco:matrix.orgElvishJerricco joined the room.19:38:47
@andi:kack.itandi- joined the room.19:39:40
@stick:matrix.orgstick joined the room.19:46:16
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.19:50:54
@joerg:bethselamin.deMic92 joined the room.19:51:07
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.20:03:59

Show newer messages


Back to Room ListRoom Version: 6