forked from extern/flakelight
Change file escape char to _
This commit is contained in:
parent
3136d8e860
commit
aa0a3b3c2e
@ -56,10 +56,10 @@ let
|
|||||||
(filter (s: s != "default.nix"))
|
(filter (s: s != "default.nix"))
|
||||||
(filter (hasSuffix ".nix"))
|
(filter (hasSuffix ".nix"))
|
||||||
(map (removeSuffix ".nix"))
|
(map (removeSuffix ".nix"))
|
||||||
(map (removePrefix "+"))
|
(map (removePrefix "_"))
|
||||||
])
|
])
|
||||||
(p: import (path + (if pathExists
|
(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:
|
autoloadAttr = nixDir: attr:
|
||||||
if pathExists (nixDir + "/${attr}.nix")
|
if pathExists (nixDir + "/${attr}.nix")
|
||||||
|
Loading…
Reference in New Issue
Block a user