!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
26 Feb 2026
@reckenrode:matrix.orgRandy EckenrodeThey made it an error in Clang 22.19:17:05
@alexfmpe:matrix.orgalexfmpeso I'm surprised it wasn't already an error19:17:13
@alexfmpe:matrix.orgalexfmpeah but I think that was gcc19:17:40
@alexfmpe:matrix.orgalexfmpebecause I was doing linux->ucrt6419:17:49
@alexfmpe:matrix.orgalexfmpe

kay this fixes it

- env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";
+ env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include -Wno-error-incompatible-pointer-types";
19:19:40
@reckenrode:matrix.orgRandy Eckenrodehttps://releases.llvm.org/22.1.0/tools/clang/docs/ReleaseNotes.html#c-c-language-potentially-breaking-changes19:19:49
@alexfmpe:matrix.orgalexfmpethis seems harmless for <22 so it can just target master no?19:20:35
@reckenrode:matrix.orgRandy EckenrodeIt’s in the stdenv bootstrap, so it will cause mass rebuilds.19:22:13
@alexfmpe:matrix.orgalexfmpeoh right, what I really meant to ask was does-this-count-as-forward-compat19:23:10
@alexfmpe:matrix.orgalexfmpeno need to wait for any other llvm22 stuff to PR?19:23:28
@reckenrode:matrix.orgRandy EckenrodeIt should be harmless for LLVM 21.19:23:38
@alexfmpe:matrix.orgalexfmpeI'm surprised so far there's little fallout from incompatible-pointer-types becoming an error19:24:23
@reckenrode:matrix.orgRandy EckenrodeDid GCC do it first?19:24:42
@alexfmpe:matrix.orgalexfmpeah yeah could be from that 19:25:43
@alexfmpe:matrix.orgalexfmpesomething definitely got first blood last year 19:26:01
@alexfmpe:matrix.orgalexfmpee.g. https://gitlab.haskell.org/ghc/ghc/-/merge_requests/1391919:26:04
@alexfmpe:matrix.orgalexfmpe* e.g. https://gitlab.haskell.org/ghc/ghc/-/issues/2633719:26:22
@alexfmpe:matrix.orgalexfmpeguess I'll let this run for another couple hours and see if there's anything else load-bearing going ape19:26:57
@alexfmpe:matrix.orgalexfmpehuh chromium doesn't eval on aarch64-darwin19:34:05
@alexfmpe:matrix.orgalexfmpe trying all the other suggestions
these 705 derivations will be built:
19:34:16
@logn:zirco.devLogNguyyyyyys my nix disappeared again what am i supposed to do20:13:16
@logn:zirco.devLogNit's after an update, I remember this happens20:13:25
@logn:zirco.devLogNbut forgot how to fix it20:13:28
@samasaur:matrix.orgsamasaur

macos reverted to the default shell init files in /etc, you should just need to add the block that Nix adds when it is installed:

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
20:15:54
@samasaur:matrix.orgsamasaurI don't remember if there's a "nice" way to do that with the upstream nix installer (which I suspect you used) and without nix-darwin20:16:22
@alexfmpe:matrix.orgalexfmpe *

kay this fixes it

- env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";
+ env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include -Wno-error=incompatible-pointer-types";
20:41:08
@logn:zirco.devLogNah gotcha. this is in etc profile.d or something? can't lie I don't dig through my mac file system enough to know what /etc looks like22:50:46
27 Feb 2026
@theo-paris:matrix.orgTheo ParisI was going to install qemu with Nix instead of homebrew but I just ran into https://github.com/NixOS/nixpkgs/issues/494532 It seems like homebrew maintainers just disabled that test on aarch64-darwin (https://github.com/Homebrew/homebrew-core/blob/main/Formula/s/samba.rb#L77). I'm not exactly sure how to fix it within nixpkgs and I don't know if it'd require targeting staging... I'm not aware of any upstream discussions or PRs to samba itself about this issue 🤔 00:54:05
@theo-paris:matrix.orgTheo Paris* I was going to install qemu with Nix instead of homebrew but I just ran into https://github.com/NixOS/nixpkgs/issues/494532 It seems like homebrew maintainers just disabled that test on aarch64-darwin (https://github.com/Homebrew/homebrew-core/blob/main/Formula/s/samba.rb#L77). I'm not exactly sure how to fix it within nixpkgs and I don't know if it'd require targeting staging... I'm also not aware of any upstream discussions or PRs to samba itself about this issue 🤔 00:55:23
@reckenrode:matrix.orgRandy Eckenrode

I’m also seeing these errors in the log. Are they non-fatal?

librpc/idl/auth.idl:154: error: Unable to determine origin of type `struct cli_credentials'
librpc/idl/auth.idl:154: error: Unable to determine origin of type `struct cli_credentials'
librpc/idl/winbind.idl:286: error: winbind_SamLogon: [out] argument 'validation' is not a pointer or array, skip client functions
01:00:24

There are no newer messages yet.


Back to Room ListRoom Version: 6