From def5df923f14ab858ec2882591d6cf851be6a6bf Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 18 Nov 2023 04:54:05 +0100 Subject: [PATCH] tests.nixpkgs-check-by-name: More reliable .envrc reloading See also https://github.com/nix-community/nix-direnv/issues/408 and https://github.com/nix-community/nix-direnv/pull/407 --- pkgs/test/nixpkgs-check-by-name/.envrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/test/nixpkgs-check-by-name/.envrc b/pkgs/test/nixpkgs-check-by-name/.envrc index 1d953f4bd735..4555ccf0921f 100644 --- a/pkgs/test/nixpkgs-check-by-name/.envrc +++ b/pkgs/test/nixpkgs-check-by-name/.envrc @@ -1 +1,7 @@ +if has nix_direnv_watch_file; then + nix_direnv_watch_file default.nix shell.nix +else + watch_file default.nix shell.nix +fi + use nix