mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
direnvrc: fix gcroot creation in use-nix
This commit is contained in:
parent
20e2676b19
commit
f8592153f3
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -167,7 +167,7 @@ use_nix() {
|
|||
# This part is based on https://discourse.nixos.org/t/what-is-the-best-dev-workflow-around-nix-shell/418/4
|
||||
if [[ "${out:-}" != "" ]] && (( update_drv )); then
|
||||
local drv_link="${direnv_dir}/drv" drv
|
||||
drv=$(nix show-derivation "$1" | grep -E -o -m1 '/nix/store/.*.drv')
|
||||
drv=$(nix show-derivation "$out" | grep -E -o -m1 '/nix/store/.*.drv')
|
||||
_nix_add_gcroot "$drv" "$drv_link"
|
||||
log_status renewed cache and derivation link
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue