Skip to content

Commit

Permalink
Try fixing Nix 2.3 install error on ubuntu-24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Nov 5, 2024
1 parent d925d37 commit c69d218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix-quick-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ done

# Install nix in profile
MANPATH= . "$nix/etc/profile.d/nix.sh"
"$nix/bin/nix-env" -i "$nix"
if vergt "$NIX_VERSION" "2.3"; then
"$nix/bin/nix-env" -i "$nix"
else
"$nix/bin/nix-env" --option sandbox false -i "$nix"
fi

# Certificate bundle is not detected by nix.sh on macOS.
if [ -z "${NIX_SSL_CERT_FILE:-}" -a -e "/etc/ssl/cert.pem" ]; then
Expand Down

0 comments on commit c69d218

Please sign in to comment.