From be3173c63c90eac92c0260ac0237ce8257306bd4 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 4 Apr 2022 13:31:41 +0100 Subject: [PATCH] Remove use_flake_extra_watch() nix-direnv 1.6.1 added nix_direnv_watch_file --- .envrc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.envrc b/.envrc index d8202b9..f9e76d1 100644 --- a/.envrc +++ b/.envrc @@ -1,14 +1,4 @@ -use_flake_extra_watch() { - watch_file devshell/* - for f in devshell/*; do - if [ "$f" -nt flake.nix ]; then - # nix-direnv doesn't check the dates on other files, so give it a kick via flake.nix - touch flake.nix - fi - done -} - -use flake_extra_watch +nix_direnv_watch_file devshell/{default,commands,install}.nix use flake # devshell needs the shellHook to run even when cached