2022-05-09 13:20:43 +02:00
|
|
|
dirname: inputs@{ self, nixpkgs, ...}: let
|
|
|
|
#fix = f: let x = f x; in x;
|
|
|
|
#categories = fix (wip: (import "${dirname}/imports.nix" dirname inputs).importAll (inputs // { self = inputs.self // { lib = nixpkgs.lib // { inherit wip; }; }; })) dirname;
|
|
|
|
categories = (import "${dirname}/imports.nix" dirname inputs).importAll inputs dirname;
|
2022-11-30 13:41:21 +01:00
|
|
|
wip = (builtins.foldl' (a: b: a // (if builtins.isAttrs b then b else { })) { } (builtins.attrValues (builtins.removeAttrs categories [ "setup-scripts" ]))) // categories;
|
2022-06-28 05:00:48 +02:00
|
|
|
in nixpkgs.lib // { wip = wip // { prefix = inputs.config.prefix; }; }
|