-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-shell should preserve SSL_CERT_FILE #853
Comments
see also NixOS/nixpkgs#13744 |
Is that not accomplished by NixOS/nixpkgs@39609a0? |
It doesn't preserve it being unset :-) But anyway, that's not a problem in nix-shell itself (i.e. its repo). We could modify the stdenv instead to e.g. be responsive to |
@peti I'm on NixOS/nixpkgs@0bf8a1a (which includes that commit), and it still happens:
_Edit:_ oh, of course - I didn't see the |
@cstrahan Yes, this is known. This is a duplicate of NixOS/nixpkgs#13744, see the discussion there |
OK, I think this bug report is valid and that it should be fixed. IMHO, NixOS/nixpkgs#13744 is the right place to pursue this issue, though, since the behavior in question is caused by the stdenv generic builder and not by Nix itself. |
That sounds fair. I thought we might need to just filter out a set of bad environment variables within |
It appears that the stdenv in Nixpkgs has changed such that
$SSL_CERT_FILE
is set to/no-cert-file.crt
.nix-shell
ought to preserve the environment variable so that programs that need SSL (e.g.git
) don't break. If the environment variable didn't exist prior to invokingnix-shell
, the environment variable should be unset before executing the given command.The text was updated successfully, but these errors were encountered: