mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Set IN_NIX_SHELL explicitly in use_nix
This commit is contained in:
parent
1223f170d8
commit
992b88b87d
1 changed files with 5 additions and 0 deletions
5
direnvrc
5
direnvrc
|
|
@ -467,6 +467,11 @@ use_nix() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Some builtin nix tooling depends on this variable being set BEFORE their invocation to change their behavior
|
||||||
|
# (notably haskellPackages.developPackage returns an env if this is set)
|
||||||
|
# This allows us to more closely mimic nix-shell.
|
||||||
|
export IN_NIX_SHELL="impure"
|
||||||
|
|
||||||
if tmp_profile_rc=$(_nix \
|
if tmp_profile_rc=$(_nix \
|
||||||
print-dev-env \
|
print-dev-env \
|
||||||
--profile "$tmp_profile" \
|
--profile "$tmp_profile" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue