1
1
forked from extern/flakelight

Change file escape char to _

This commit is contained in:
Archit Gupta 2023-04-15 11:02:06 -07:00
parent 3136d8e860
commit aa0a3b3c2e

View File

@ -56,10 +56,10 @@ let
(filter (s: s != "default.nix"))
(filter (hasSuffix ".nix"))
(map (removeSuffix ".nix"))
(map (removePrefix "+"))
(map (removePrefix "_"))
])
(p: import (path + (if pathExists
(path + "/+${p}.nix") then "/+${p}.nix" else "/${p}.nix")));
(path + "/_${p}.nix") then "/_${p}.nix" else "/${p}.nix")));
autoloadAttr = nixDir: attr:
if pathExists (nixDir + "/${attr}.nix")