You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reinstall of an existing multi-user nix installation (to deal with nixbld issues on MacOS 15 Sequoia): #10892 starting an issue as suggested in that thread.
$ sw_vers
ProductName: macOS
ProductVersion: 15.0
BuildVersion: 24A335
$ type -a tar
tar is /etc/profiles/per-user/n8henrie/bin/tar
tar is /run/current-system/sw/bin/tar
tar is /usr/bin/tar
Workaround: PATH=$(getconf PATH) sh <(curl -L https://nixos.org/nix/install)
Output
$ sh <(curl -L https://nixos.org/nix/install) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 4267 100 4267 0 0 10441 0 --:--:-- --:--:-- --:--:-- 0downloading Nix 2.24.7 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.24.7/nix-2.24.7-aarch64-darwin.tar.xz' to '/var/folders/kb/tw_lp_xd2_bbv0hqk4m0bvt80000gn/T/nix-binary-tarball-unpack.nJf7SW58hu'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 14.6M 100 14.6M 0 0 18.8M 0 --:--:-- --:--:-- --:--:-- 18.8Mtar (child): xz: Cannot exec: No such file or directorytar (child): Error is not recoverable: exiting nowtar: Child returned status 2tar: Error is not recoverable: exiting now/dev/fd/63: failed to unpack 'https://releases.nixos.org/nix/nix-2.24.7/nix-2.24.7-aarch64-darwin.tar.xz'
I was imagining we could just use /usr/bin/tar when running on macOS (the other threads linked above discuss some reasons that it may not be ideal to send prospective users on a "just install xz" quest)
Alternatively, we could fix this and prevent similar surprises with other tools down the line by cleaning / exporting PATH early in the script (only on Darwin). That would help prevent issues with tools on the PATH from nix, homebrew, macports, etc.
Platform
Additional information
Reinstall of an existing multi-user nix installation (to deal with
nixbld
issues on MacOS 15 Sequoia): #10892 starting an issue as suggested in that thread.Workaround:
PATH=$(getconf PATH) sh <(curl -L https://nixos.org/nix/install)
Output
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: