tv pkgs: import files and dirs as overlays harder
This commit is contained in:
parent
ad6e957a51
commit
09fa6fbad6
|
@ -3,12 +3,13 @@ with import <stockholm/lib>;
|
|||
self: super:
|
||||
|
||||
# Import files and subdirectories like they are overlays.
|
||||
foldl' mergeAttrs {}
|
||||
fix
|
||||
(foldl' (flip extends) (_: super)
|
||||
(map
|
||||
(name: import (./. + "/${name}") self super)
|
||||
(name: import (./. + "/${name}"))
|
||||
(filter
|
||||
(name: name != "default.nix" && !hasPrefix "." name)
|
||||
(attrNames (readDir ./.))))
|
||||
(attrNames (readDir ./.)))))
|
||||
|
||||
//
|
||||
|
||||
|
|
Loading…
Reference in a new issue