mirror of
https://github.com/nix-community/flakelight.git
synced 2025-08-09 23:17:48 +02:00
Change file escape char to _
This commit is contained in:
@ -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")
|
||||||
|
Reference in New Issue
Block a user