doctrine/lib: rename importAll.nix -> import-all.nix

This commit is contained in:
Alejandro Soto 2025-08-06 14:05:49 -06:00
parent 2fe1f36eb9
commit 8cc6c13cf5
No known key found for this signature in database
GPG key ID: A2C4C79764EE8F16
2 changed files with 1 additions and 1 deletions

View file

@ -1,21 +0,0 @@
{
lib,
root,
exclude ? ["default"],
}:
with builtins;
with lib;
# http://chriswarbo.net/projects/nixos/useful_hacks.html
let
basename = removeSuffix ".nix";
isMatch = name: type:
(hasSuffix ".nix" name || type == "directory")
&& ! elem (basename name) exclude;
entry = name: _: {
name = basename name;
value = import (root + "/${name}");
};
in
mapAttrs' entry (filterAttrs isMatch (readDir root))