NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.8k stars 1.52k forks source link

Allow `$NIX_SSL_CERT_FILE` fall back to `/etc/ssl/cert.pem` #5461

Open kidonng opened 3 years ago

kidonng commented 3 years ago

Is your feature request related to a problem? Please describe. There is a certificate bundle at /etc/ssl/cert.pem on macOS (more precisely, OpenBSD), which is used by e.g. system-bundled curl. I notice the Nix profile scripts will fall back to some predefined bundle paths when exporting $NIX_SSL_CERT_FILE, it would be nice to also support this location.

Describe the solution you'd like When exporting $NIX_SSL_CERT_FILE in scripts (e.g. scripts/nix-profile.sh.in), also check the existence of /etc/ssl/cert.pem and use it if approriate.

Describe alternatives you've considered Maintain the status quo i.e. prefer the bundle in Nix profile.

Additional context N/A

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info