mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Merge pull request #329 from amarshall/fix-strict-env-use-nix
Fix use nix with no nixpkgs when strict_env
This commit is contained in:
commit
195959cda3
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -242,7 +242,7 @@ use_nix() {
|
|||
|
||||
local layout_dir path version
|
||||
layout_dir=$(direnv_layout_dir)
|
||||
path=$("${NIX_BIN_PREFIX}nix-instantiate" --find-file nixpkgs 2>/dev/null)
|
||||
path=$("${NIX_BIN_PREFIX}nix-instantiate" --find-file nixpkgs 2>/dev/null || true)
|
||||
if [[ -n "$path" ]]; then
|
||||
path=$(_nix_direnv_realpath "$path")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue