Mark NIX_SHEL as impure (#29)

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Farid Zakaria 2020-07-18 01:45:18 -07:00 committed by GitHub
parent 529e6fcf96
commit d9ae5315b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv/

View file

@ -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