fix gcroot for nix-shell

This commit is contained in:
Jörg Thalheim 2020-08-11 05:20:31 +00:00
parent 8b067fb376
commit 8fa23fb61b

View file

@ -131,7 +131,7 @@ use_nix() {
if [[ "${out:-}" != "" ]] && (( update_drv )); then if [[ "${out:-}" != "" ]] && (( update_drv )); then
local drv_link="${direnv_dir}/drv" drv local drv_link="${direnv_dir}/drv" drv
drv=$(nix show-derivation "$1" | grep -E -o -m1 '/nix/store/.*.drv') drv=$(nix show-derivation "$1" | grep -E -o -m1 '/nix/store/.*.drv')
_nix_add_gcroot "drv" "$drv_link" _nix_add_gcroot "$drv" "$drv_link"
log_status renewed cache and derivation link log_status renewed cache and derivation link
fi fi