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:
|
self: super:
|
||||||
|
|
||||||
# Import files and subdirectories like they are overlays.
|
# Import files and subdirectories like they are overlays.
|
||||||
foldl' mergeAttrs {}
|
fix
|
||||||
(map
|
(foldl' (flip extends) (_: super)
|
||||||
(name: import (./. + "/${name}") self super)
|
(map
|
||||||
(filter
|
(name: import (./. + "/${name}"))
|
||||||
(name: name != "default.nix" && !hasPrefix "." name)
|
(filter
|
||||||
(attrNames (readDir ./.))))
|
(name: name != "default.nix" && !hasPrefix "." name)
|
||||||
|
(attrNames (readDir ./.)))))
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user