Skip to content

Commit 82906c3

Browse files
committed
fix: include default.nix in shell_exists_at
1 parent 06331b7 commit 82906c3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/util.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ module Util = struct
3232
(** Whether a flake.nix file exists at the given directory *)
3333
let flake_exists_at dir = Sys.file_exists (Filename.concat dir "flake.nix")
3434

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")
35+
(** Whether a shell.nix or default.nix file exists at the given directory *)
36+
let shell_exists_at dir =
37+
Sys.file_exists (Filename.concat dir "shell.nix")
38+
|| Sys.file_exists (Filename.concat dir "default.nix")
39+
;;
3740
end
3841

3942
(** Types and functions for parsing, interacting and formatting URIs. *)

0 commit comments

Comments
 (0)