!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
30 Jan 2026
@reckenrode:matrix.orgRandy Eckenrode Use pkgsStatic.llvmPackages.libcxxStdenv to build it? 11:45:02
@rosscomputerguy:matrix.orgTristan RossOh yeah, forgot that exists11:48:10
@rosscomputerguy:matrix.orgTristan RossOmg, that fixed it. Thanks Randy for reminding me that exists.11:48:59
@rosscomputerguy:matrix.orgTristan RossAlso, I managed to test https://github.com/NixOS/nixpkgs/pull/485174 and it at least fixes swift being compiled.11:54:50
@reckenrode:matrix.orgRandy EckenrodeSo fixing Linux is what’s left?11:57:44
@rosscomputerguy:matrix.orgTristan RossYes, it does appear that way11:58:03
@rosscomputerguy:matrix.orgTristan RossWhich imo, this should be at least a Darwin fix since that seems more critical11:58:18
@ihar.hrachyshka:matrix.orgIhar HrachyshkaSee my nixpkgs review dump there in a comment too. (Probably was an overkill to run the whole tree...) Once commit message is fixed, let's merge it. I didn't expect swift will be master admissible since it broke a lot for me personally.11:58:25
@rosscomputerguy:matrix.orgTristan RossA separate PR fixing swift on Linux should be fine.11:58:45
@rosscomputerguy:matrix.orgTristan RossOh great, it broke again12:04:14
@rosscomputerguy:matrix.orgTristan Ross
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
12:05:07
@rosscomputerguy:matrix.orgTristan RossIdk how it's got this issue when libc++ should be statically linked here fully.12:05:51
@rosscomputerguy:matrix.orgTristan Ross Do my buildInputs need the static libc++ derivation? 12:06:51
@reckenrode:matrix.orgRandy EckenrodeIt’s part of the stdenv.12:07:35
@reckenrode:matrix.orgRandy Eckenrode You can use otool -L to see whether it’s linking the system one. I can’t remember how libcxxStdenv is defined, but I thought it always used libc++ from Nixpkgs. 12:08:35
@reckenrode:matrix.orgRandy Eckenrode If you don’t have Xcode installed nix shell nixpkgs#llvmPackages.bintools-unwrapped --command llvm-otool -L IIRC. 12:09:30
@rosscomputerguy:matrix.orgTristan Ross

It still says:

/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1900.180.0)
12:09:31
@rosscomputerguy:matrix.orgTristan RossOh, libsandbox is also being included from the system huh12:10:28
@reckenrode:matrix.orgRandy Eckenrode You can try overriding the libcxx of the static stdenv’s unwrapped cc. 12:10:33
@reckenrode:matrix.orgRandy EckenrodeIs the package manually linking system libraries on its own somehow?12:11:01
@reckenrode:matrix.orgRandy EckenrodeThat mutex error is weird though. Does it work with LLVM 20+ on Linux?12:11:35
@rosscomputerguy:matrix.orgTristan RossSomewhat because crane isn't able to pick up the difference between host vs build packages for some reason12:11:38
@rosscomputerguy:matrix.orgTristan RossYesn't12:11:45
@rosscomputerguy:matrix.orgTristan RossThis does some very weird things like statically link nix12:12:10
@rosscomputerguy:matrix.orgTristan Ross(Yes nix, like libnix-flake-c and the various other libs)12:12:27
@rosscomputerguy:matrix.orgTristan RossLinux mostly works, aside from flakiness in the program's behavior12:13:03
@rosscomputerguy:matrix.orgTristan Ross Hmm, this might've been caused by a skill issue lol. I had to override other flags so it might've been using pkgs.pkgsBuildBuild.stdenv.cc. 12:21:51
@rosscomputerguy:matrix.orgTristan RossStatically linking Rust for 3 platforms is a bit of a pain12:22:22
@reckenrode:matrix.orgRandy EckenrodeOverriding the stdenv used by Rust is extremely annoying. It was one of the motivating reasons for how the new SDK pattern ended up as it did.12:48:58
@rosscomputerguy:matrix.orgTristan RossYeah, I'm using crane so it's at least easier to deal with some of these things12:50:02

There are no newer messages yet.


Back to Room ListRoom Version: 6