2024-07-01 07:14:48 +00:00
|
|
|
rec {
|
|
|
|
/* Given the attrset for evaluating a wrapper-manager module, return a
|
|
|
|
derivation containing the wrapper.
|
|
|
|
*/
|
|
|
|
build = args:
|
|
|
|
(eval args).config.build.toplevel;
|
|
|
|
|
|
|
|
/* Evaluate a wrapper-manager configuration. */
|
|
|
|
eval = {
|
|
|
|
pkgs,
|
2024-07-02 05:26:40 +00:00
|
|
|
lib ? pkgs.lib,
|
2024-07-01 07:14:48 +00:00
|
|
|
modules ? [ ],
|
|
|
|
specialArgs ? { },
|
|
|
|
}:
|
2024-07-02 05:26:40 +00:00
|
|
|
lib.evalModules {
|
2024-07-01 07:14:48 +00:00
|
|
|
modules = [ ../modules/wrapper-manager ] ++ modules;
|
|
|
|
specialArgs = specialArgs // {
|
2024-07-01 14:29:03 +00:00
|
|
|
inherit pkgs;
|
2024-07-01 07:14:48 +00:00
|
|
|
modulesPath = builtins.toString ../modules/wrapper-manager;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|