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
NIX_SSL_CERT_FILE is /no-cert-file.crt when running env with --run, but it's /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt when running env manually in the shell that opens.
Steps To Reproduce
nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/2f0c3be57c348f4cfd8820f2d189e29a685d9c41.tar.gz -p coreutils --run "env" > a
nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/2f0c3be57c348f4cfd8820f2d189e29a685d9c41.tar.gz -p coreutils then run env > b in the shell that opens.
diff a b
$ diff a b
14a15
> NIX_PROFILES=/nix/var/nix/profiles/default /Users/me/.nix-profile
26c27
< buildCommandPath=/private/tmp/nix-shell-57690-0/.attr-0
---
> buildCommandPath=/private/tmp/nix-shell-57896-0/.attr-0
33c34
< NIX_SSL_CERT_FILE=/no-cert-file.crt
---
> NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
Expected behavior
Expected NIX_SSL_CERT_FILE to be /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt when using --run.
nix-env --version output
nix-env (Nix) 2.10.3, on macos
The text was updated successfully, but these errors were encountered:
I can't reproduce it. NIX_SSL_CERT_FILE is always set to /no-cert-file.crt – which seems to be the right choice given the overall semantics of --pure.
What probably happens is that there's something in your bash rc scripts that sets NIX_SSL_CERT_FILE to /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
Describe the bug
NIX_SSL_CERT_FILE is
/no-cert-file.crt
when running env with --run, but it's/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
when running env manually in the shell that opens.Steps To Reproduce
nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/2f0c3be57c348f4cfd8820f2d189e29a685d9c41.tar.gz -p coreutils --run "env" > a
nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/2f0c3be57c348f4cfd8820f2d189e29a685d9c41.tar.gz -p coreutils
then runenv > b
in the shell that opens.diff a b
Expected behavior
Expected NIX_SSL_CERT_FILE to be
/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
when using --run.nix-env --version
outputnix-env (Nix) 2.10.3, on macos
The text was updated successfully, but these errors were encountered: