1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Fix issue with NIX_SSL_CERT_FILE

Apparently, fish iterates over the NIX_PROFILES variable as a single value and does not split on spaces automatically. This can cause the NIX_SSL_CERT_FILE variable to be unset.

I'm not sure if this is behavior that changed at some point in fish shell. I have version 3.6.1.
This commit is contained in:
Colin Barrett 2023-06-25 00:20:15 -04:00 committed by GitHub
parent 60f06a1714
commit fef05f452a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ else if test -e "$NIX_LINK/etc/ca-bundle.crt" # old cacert in Nix profile
set --export NIX_SSL_CERT_FILE "$NIX_LINK/etc/ca-bundle.crt"
else
# Fall back to what is in the nix profiles, favouring whatever is defined last.
for i in $NIX_PROFILES
for i in (string split ' ' $NIX_PROFILES)
if test -e "$i/etc/ssl/certs/ca-bundle.crt"
set --export NIX_SSL_CERT_FILE "$i/etc/ssl/certs/ca-bundle.crt"
end