!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
13 Nov 2025
@purrtner:matrix.orgpurrtner *

Hi Ben, sorry for taking so long to respond. It seems, there has been an upstream change, that fixed the issue.

The error was this one:

Local evaluation for computing rebuilds
$ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f <nixpkgs> --nix-path nixpkgs=/Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs nixpkgs-overlays=/private/tmp/nix-shell-1673-462192242/tmpa3pj3v9z -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
error:
       … while querying the derivation named 'flutter-wrapped-3.29.3-sdk-links'

       ……… 

       error: attribute 'macos-arm64' missing
       at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:56:22:
           55|               url = "https://chrome-infra-packages.appspot.com/client?platform=${stdenv-constants.platform}&version=git_revision:${cipdCommit}";;
           56|               hash = cipdHashes.${stdenv-constants.platform};
             |                      ^
           57|             };
       Did you mean mac-arm64?
https://github.com/NixOS/nixpkgs/pull/459527 failed to build: Failed to list packages: nix-env failed with exit code 1

This Commit seems to have fixed the error. https://github.com/NixOS/nixpkgs/commit/78959ee6e3db1762024c4f8068cc9db57b8d5a6e#diff-a02d8cf7491f5e3faf1245b0bce2bad970c5924fd4b67e954d04cef7ee13147e

I still have no idea, why it wasn't broken for others, anyway...

10:29:02
@niklaskorz:matrix.orgniklaskorzthey completely invalidate your whole package tree10:29:04
@niklaskorz:matrix.orgniklaskorzand are incorrect10:29:06
@niklaskorz:matrix.orgniklaskorz well not nix.enable = false; 10:29:58
@tao:beeper.comtaoOk I'll give this a shot, thank you10:30:07
@niklaskorz:matrix.orgniklaskorzI suppose you set that because you are using determinate nix10:30:05
@niklaskorz:matrix.orgniklaskorz but definitely remove nixpkgs.hostPlatform 10:30:17
@tao:beeper.comtaoI'm actually using Lix10:30:36
@niklaskorz:matrix.orgniklaskorzoh, interesting10:30:47
@niklaskorz:matrix.orgniklaskorzin that case you probably want nix.enable = true and have it auto update your lix installation10:30:58
@niklaskorz:matrix.orgniklaskorzbut that also needs settings nix.package to lix10:31:04
@niklaskorz:matrix.orgniklaskorzyou can find an explanation on how to do that here: https://lix.systems/add-to-config/#flake-based-configurations10:31:48
@niklaskorz:matrix.orgniklaskorz basically it's just nix.package = pkgs.lixPackageSets.stable.lix; if you don't care about having nixpkgs-review and other nix-based tools use lix 10:40:00
@purrtner:matrix.orgpurrtner Last week I submitted a fix for a package, that wont build on darwin anymore.
Unfortunately the package has no maintainer whatsoever. Is the trick just to be patient? I have no issue with it, since I can build it locally using an overlay, but I think, it would be nice to have it building easily for everyone again.
10:40:52
@niklaskorz:matrix.orgniklaskorz If you got no reviews after a week, you can post it on #review-requests:nixos.org 10:50:23
@reckenrode:matrix.orgRandy EckenrodeLLVM dropped support for the aarch64-apple-darwin triple in LLVM 20. I believe Tristan tried to get them to keep support, but they said no.11:36:42
@niklaskorz:matrix.orgniklaskorzI wonder if it's worth having an explicit assertion for anyone that wrongly has this set12:01:50
@purrtner:matrix.orgpurrtnerThanks!13:06:44
@debtquity:matrix.orgdebtquityaarch64 cross compilation on m4 mac is cooking rn at 15G 21:48:17
@mio:chat.mio19.ukmio

python is possibly broken

       > python3.13(9980,0x1fba16240) malloc: *** error for object 0x103902de0: pointer being freed was not allocated
       > python3.13(9980,0x1fba16240) malloc: *** set a breakpoint in malloc_error_break to debug

https://github.com/NixOS/nixpkgs/issues/461396

23:27:20
14 Nov 2025
@sarahec:matrix.orgSarah ClarkI added notes to your bug. TL;dr protobuf is looking like the probable culprit00:48:44
@debtquity:matrix.orgdebtquity

So I use the nix.linux-builder for building aarch64-linux dependencies. But I am running into an issue on remote machines not trusting the generated paths since they are untrusted.

Even on my local machine, nix store verify --all is showing they are untrusted:

# nix store verify --all
...
path '/nix/store/0mapnivw6b3678v1b336j9dfxwjhmwc5-unit-dhcpcd.service' is untrusted
path '/nix/store/wy485gdjl7xwlaq5zz2aq55i3yjxry2b-dhcpcd.conf' is untrusted
path '/nix/store/36yijh6hzrg2r45sydbys92wrlwx5gs6-unit-systemd-fsck-.service' is untrusted
path '/nix/store/sr1pdx59gjbh949ai57lg6nzj19pgrpz-unit-script-network-setup-start' is untrusted
path '/nix/store/1j0930fgfwqgbxl517c08v64fmg0bnij-X-Restart-Triggers-systemd-timesyncd' is untrusted
path '/nix/store/421h6j088bq5q9qakabrsh004v2wgxp2-unit-network-setup.service' is untrusted
...

How do I configure the linux builder to sign the generated files so I can distribute the public key to both my local and remote machines?

03:49:27
@debtquity:matrix.orgdebtquity

this is what i observe with nixos-rebuild-ng

# nixos-rebuild-ng switch --flake .#rpi --ask-sudo-password --sudo --target-host "d@rpi"
[sudo] password for d@rpi:
building the system configuration...
warning: Git tree '/Users/d/.config/nix' is dirty
(d@rpi) Password:
(d@rpi) Password:
copying 6 paths...
copying path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' to 'ssh://d@rpi'...
error: cannot add path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' because it lacks a signature by a trusted key
error: unexpected end-of-file
Command 'nix-copy-closure --to d@rpi /nix/store/pjsmcl4633j54l4chsgqzv689kbkcrmi-nixos-system-rpi-25.11.20251005.d7f52a7' returned non-zero exit status 1.
03:51:06
@yoghurtt:matrix.orgyoghurt joined the room.12:55:41
@yoghurtt:matrix.orgyoghurt

Hey I've been using nix on mac for a while and really enjoy it!

I just got a new mac and trying to follow the guide on installing nix-darwin from https://github.com/nix-darwin/nix-darwin seems to fail.

  1. I installed nix using the lix installer
  2. I get an error when i try to install nix-darwin

Here is the output if i run the command in step 2 of the README.md:

$ sudo nix run nix-darwin/nix-darwin-25.05#darwin-rebuild -- switch
warning: $HOME ('/Users/tje') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
building the system configuration...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'darwin' was not found in the Nix search path (add it using $NIX_PATH or -I)

This is a fresh macbook and i tried to follow the steps in the README.md so i'm not sure if I did something wrong or if the README is outdated.

13:05:30
@niklaskorz:matrix.orgniklaskorzdid follow the first step that is unfortunately collapsed by default?13:07:31
@niklaskorz:matrix.orgniklaskorz* did you follow the first step that is unfortunately collapsed by default?13:07:34
@niklaskorz:matrix.orgniklaskorzreferring to "Step 1. Creating flake.nix"13:07:57
@niklaskorz:matrix.orgniklaskorz or if you don't plan to use flakes, then the other instruction telling you to run sudo nix-channel --add first 13:08:39
@yoghurtt:matrix.orgyoghurt

niklaskorz: Thank you. Your message leads me to my mistake.
I did not create the /etc/nix-darwin folder but instead have my flake.nix in a different directory.

The fix was to run sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/darwin/#simple.

~/darwin/ is where I have my config.

13:20:07

Show newer messages


Back to Room ListRoom Version: 6