From 51a6ae01e16635de7e7fa3ba1b8b52b4ce339e39 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Fri, 9 Feb 2024 22:44:02 -0500 Subject: [PATCH] Use `pathExists` instead of `readDir` --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e31f50f..da251c9 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ inherit (pkgs) lib; # Check if project has a shell.nix - hasShell = dir: (builtins.readDir ./${dir}) ? "shell.nix"; + hasShell = dir: builtins.pathExists ./${dir}/shell.nix; # Get all project directories currentDir = builtins.readDir ./.;