!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
4 Apr 2026
@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
@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:53
@reckenrode:matrix.orgRandy EckenrodeOh, wait. That’s my Vulkan patches. That’s my fault.10:54:24
@antifuchs:asf.computerantifuchsAh, GitHub actions levels of documentation indirection (:11:39:40
@emilazy:matrix.orgemilyhttps://github.com/llvm/llvm-project/compare/llvmorg-21.1.7...llvmorg-21.1.811:42:16
@emilazy:matrix.orgemilyeither one of these or a packaging change11:42:34
@emilazy:matrix.orgemilybest guess... https://github.com/llvm/llvm-project/commit/d2e835bd46384aa1628c9d44e3f93438f0795dfd?11:43:10
@emilazy:matrix.orgemilyhttps://github.com/rust-lang/rust/issues/14952211:43:28
@emilazy:matrix.orgemily would be wild if this somehow broke vim 11:43:39
@emilazy:matrix.orgemilytry building without optimization?11:44:05
@danieroux:matrix.orgdanieroux set a profile picture.13:52:43
@esperlily:matrix.orgEsperLily [she/her] i just tried, setting CFLAGS = -g -O0 and it's still crashing 20:16:19
@emilazy:matrix.orgemily try it with -O0 with the old compiler 20:16:46
@emilazy:matrix.orgemily since if it is that commit, it'd be an incorrect optimization in LLVM somehow causing it to not crash 20:17:01
@emilazy:matrix.orgemilyseems bizarre but who knows20:17:10
@emilazy:matrix.orgemily it could ofc be anything else in the stdenv.cc closure too 20:17:25
@emilazy:matrix.orgemily(linker stuff…?)20:17:38

Show newer messages


Back to Room ListRoom Version: 6