2023-01-14 12:42:40 +00:00
|
|
|
# Turns given inputs into the standardized shape of the inputs to configure
|
|
|
|
# custom base modules in this directory.
|
2022-12-11 00:00:49 +00:00
|
|
|
{ pkgs
|
|
|
|
, lib ? pkgs.lib
|
|
|
|
, ...
|
|
|
|
}@inputs:
|
|
|
|
let
|
2022-12-13 18:42:17 +00:00
|
|
|
recursiveUpdate = lib.recursiveUpdate;
|
|
|
|
_lib = recursiveUpdate lib (import ../../lib { inherit pkgs lib; });
|
2022-12-26 10:42:14 +00:00
|
|
|
proj_root = builtins.toString ./../../..;
|
2022-12-11 00:00:49 +00:00
|
|
|
in
|
|
|
|
# TODO: Unpollute inputs
|
2022-12-13 18:42:17 +00:00
|
|
|
recursiveUpdate inputs {
|
2022-12-26 10:42:14 +00:00
|
|
|
proj_root = {
|
|
|
|
path = proj_root;
|
|
|
|
config.path = "${proj_root}/native_configs";
|
|
|
|
scripts.path = "${proj_root}/scripts";
|
|
|
|
};
|
2022-12-11 00:00:49 +00:00
|
|
|
myLib = _lib;
|
|
|
|
}
|