summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-05 09:46:11 +0100
committertv <tv@krebsco.de>2022-03-05 11:09:30 +0100
commit09fa6fbad69eed0083f950afbe0bbb6226b2043a (patch)
tree719a0da68ac30e921eb3fc4bc0af50f2ce48cfda /tv/5pkgs
parentad6e957a51d0e7f3e4090ed3eadc910e8ce75695 (diff)
tv pkgs: import files and dirs as overlays harder
Diffstat (limited to 'tv/5pkgs')
-rw-r--r--tv/5pkgs/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/tv/5pkgs/default.nix b/tv/5pkgs/default.nix
index cae5da112..9e9a3a9b8 100644
--- a/tv/5pkgs/default.nix
+++ b/tv/5pkgs/default.nix
@@ -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 ./.)))))
//