mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Mark NIX_SHEL as impure (#29)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
529e6fcf96
commit
d9ae5315b3
2 changed files with 5 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.direnv/
|
||||
4
direnvrc
4
direnvrc
|
|
@ -60,6 +60,10 @@ use_nix() {
|
|||
unset TMPDIR
|
||||
fi
|
||||
|
||||
# `nix-shell --pure` sets IN_NIX_SHELL to pure which is
|
||||
# misleading since we are in an impure shell now
|
||||
export IN_NIX_SHELL=impure
|
||||
|
||||
# `nix-shell --pure` sets invalid ssl certificate paths
|
||||
if [[ "${SSL_CERT_FILE:-}" = /no-cert-file.crt ]]; then
|
||||
if [[ ${impure_ssl_cert_file} == __UNSET__ ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue