stockholm/tv/5pkgs/default.nix

21 lines
424 B
Nix
Raw Normal View History

2022-08-02 11:33:55 +00:00
with import ../../lib;
2022-03-05 08:53:21 +00:00
let
pushBack = x: xs:
if elem x xs then
remove x xs ++ [ x ]
else
2022-07-14 13:38:17 +00:00
xs;
2022-03-05 08:53:21 +00:00
in
2017-07-01 22:09:16 +00:00
2017-07-23 00:46:44 +00:00
self: super:
2017-07-01 22:09:16 +00:00
2017-07-23 00:46:44 +00:00
# Import files and subdirectories like they are overlays.
fix
(foldl' (flip extends) (_: super)
(map
(name: import (./. + "/${name}"))
(filter
(name: name != "default.nix" && !hasPrefix "." name)
2022-03-05 08:53:21 +00:00
(pushBack "override"
(attrNames (readDir ./.))))))