2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/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.
|
2022-03-05 08:46:11 +00:00
|
|
|
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 ./.))))))
|