Set IN_NIX_SHELL explicitly in use_nix

This commit is contained in:
Bryan Bennett 2024-05-31 07:59:12 -04:00
parent 1223f170d8
commit 992b88b87d
No known key found for this signature in database
GPG Key ID: EE149E4215408DE9

View File

@ -467,6 +467,11 @@ use_nix() {
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 \
print-dev-env \
--profile "$tmp_profile" \