1 parent 06331b7 commit 82906c3Copy full SHA for 82906c3
1 file changed
lib/util.ml
@@ -32,8 +32,11 @@ module Util = struct
32
(** Whether a flake.nix file exists at the given directory *)
33
let flake_exists_at dir = Sys.file_exists (Filename.concat dir "flake.nix")
34
35
- (** Whether a shell.nix file exists at the given directory *)
36
- let shell_exists_at dir = Sys.file_exists (Filename.concat dir "shell.nix")
+ (** Whether a shell.nix or default.nix file exists at the given directory *)
+ let shell_exists_at dir =
37
+ Sys.file_exists (Filename.concat dir "shell.nix")
38
+ || Sys.file_exists (Filename.concat dir "default.nix")
39
+ ;;
40
end
41
42
(** Types and functions for parsing, interacting and formatting URIs. *)
0 commit comments