Tup is invoking direnv and direnv is invoking nix-flake and this is creating false dependency relations for Tup. Use this flake through the flake registry to introducing caching behavior.