stockholm/tv/5pkgs/default.nix
2022-12-09 01:34:31 +01:00

20 lines
378 B
Nix

with import ./lib;
let
pushBack = x: xs:
if elem x xs then
remove x xs ++ [ x ]
else
xs;
in
self: super:
# Import files and subdirectories like they are overlays.
fix
(foldl' (flip extends) (_: super)
(map
(name: import (./. + "/${name}"))
(pushBack "override"
(attrNames
(filterAttrs isNixDirEntry (readDir ./.))))))