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 {}
|
||||
(map
|
||||
(name: import (./. + "/${name}") self super)
|
||||
(filter
|
||||
(name: name != "default.nix" && !hasPrefix "." name)
|
||||
(attrNames (readDir ./.))))
|
||||
fix
|
||||
(foldl' (flip extends) (_: super)
|
||||
(map
|
||||
(name: import (./. + "/${name}"))
|
||||
(filter
|
||||
(name: name != "default.nix" && !hasPrefix "." name)
|
||||
(attrNames (readDir ./.)))))
|
||||
|
||||
//
|
||||
|
||||
|
|
Loading…
Reference in a new issue