!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1160 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
9 Nov 2025
@samasaur:matrix.orgsamasaurhm05:43:47
@samasaur:matrix.orgsamasaur okay even running swiftc --help using that bootstrap compiler produces the unknown argument error 05:44:26
@samasaur:matrix.orgsamasaur because it's wrapped and it's passing -Werror=unguarded-availability directly to swift-frontend-unwrapped 05:45:50
@samasaur:matrix.orgsamasaurah05:47:41
@samasaur:matrix.orgsamasaurwell05:47:41
@samasaur:matrix.orgsamasaurfound out why!05:47:43
@samasaur:matrix.orgsamasaur

swift-wrapper has this in it:

# TODO: If we ever need to expand functionality of this hook, it may no longer
# be compatible with Swift. Right now, it is only used on Darwin to force
# -target, which also happens to work with Swift.
if [[ -e $cc_wrapper/nix-support/add-local-cc-cflags-before.sh ]]; then
    source $cc_wrapper/nix-support/add-local-cc-cflags-before.sh
fi
05:48:16
@samasaur:matrix.orgsamasaur but the -Werror=unguarded-availability flag was added in add-local-cc-cflags-before.sh 05:48:53
@samasaur:matrix.orgsamasaurso it now does not work with swift05:49:02
@samasaur:matrix.orgsamasaurI'm not sure what the best approach here is05:52:45
@samasaur:matrix.orgsamasaur I can add some CC_WRAPPER_USED_FOR_SWIFT flag that add-local-cc-cflags-before.sh checks to add -Xcc before the -Werror=unguarded-availability when needed, or we could create a wrapper specifically for swift 05:53:49
@samasaur:matrix.orgsamasaur never mind that was silly, we already have the ability to prefix flags with -Xcc. let me see if that works or if I actually need to drop the flag entirely 06:04:33
@zhufucdev:matrix.orgSteve Reed changed their profile picture.06:16:11
@samasaur:matrix.orgsamasaurokay got it06:37:24
@samasaur:matrix.orgsamasaurhttps://github.com/NixOS/nixpkgs/pull/45998707:13:38
@delafthi:matrix.orgdelafthiyes, I am09:41:51
@9hp71n:matrix.orgghpzin (moved to @ghpzin:envs.net) changed their display name from ghpzin to ghpzin (moved to @ghpzin:envs.net).15:03:51
10 Nov 2025
@ieda:matrix.org@ieda:matrix.org left the room.13:33:38
11 Nov 2025
@mlenz:matrix.orgMirko Lenz changed their display name from mlenz to Mirko Lenz.08:07:19
@purrtner:matrix.orgpurrtnerInteresting. On my machine nixpkgs-review is broken, which is surprising.08:18:22
@delafthi:matrix.orgdelafthiI‘m usually running nixpks-review with https://github.com/Defelo/nixpkgs-review-gha. But let me test it on my local machine.11:48:38
@saige:szp.lolleah changed their display name from saige leah to leah.12:23:35
@delafthi:matrix.orgdelafthino, nixpks-review works fine for me16:38:59
@benjaminsparks:chat.alugha.appBen Sparks
In reply to @purrtner:matrix.org
Interesting. On my machine nixpkgs-review is broken, which is surprising.
Are you getting an error related to a schema?
16:40:35
@niklaskorz:matrix.orgniklaskorzI was gonna say "what version are you running"16:41:01
@niklaskorz:matrix.orgniklaskorz
In reply to @benjaminsparks:chat.alugha.app
Are you getting an error related to a schema?
That's been fixed though (the biome thingy)
16:41:12
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.19:20:44
12 Nov 2025
@jonhermansen:matrix.orgjonhermansen Is it normal that darwin-rebuild wants to clobber /etc/bashrc and /etc/zshrc ?

user@desktop mac-flake % sudo nix --extra-experimental-features "nix-command flakes" run nix-darwin/master#darwin-rebuild -- switch --flake .#desktop
warning: $HOME ('/Users/user') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
building the system configuration...
error: Unexpected files in /etc, aborting activation
The following files have unrecognized content and would be overwritten:

  /etc/bashrc
  /etc/zshrc

Please check there is nothing critical in these files, rename them by adding .before-nix-darwin to the end, and then try again.
00:53:20
@jonhermansen:matrix.orgjonhermansenIt's a fairly fresh install of Tahoe, I guess I was just surprised it was necessary. Oh, maybe this is how Nix stuff gets injected into PATH?00:59:19
@samasaur:matrix.orgsamasaurit is, yes. that said what we normally do is add the hashes of the macOS-provided files to nix-darwin itself so that they are "recognized" and can be overwritten automatically01:49:46

Show newer messages


Back to Room ListRoom Version: 6