16 lines
468 B
Nix
16 lines
468 B
Nix
|
{ inputs, lib, pkgs, ... }:
|
||
|
let
|
||
|
inherit (lib) makeExtensible attrValues foldr;
|
||
|
inherit (modules) mapModules;
|
||
|
|
||
|
modules = import ./modules.nix {
|
||
|
inherit lib;
|
||
|
self.attrs = import ./attrs.nix { inherit lib; self = {}; };
|
||
|
};
|
||
|
|
||
|
customlib = makeExtensible (self: with self;
|
||
|
mapModules ./. (file: import file { inherit self lib pkgs inputs; })
|
||
|
);
|
||
|
in
|
||
|
customlib.extend (self: super: foldr (a: b: a // b) {} (attrValues super))
|