nixos-config/subprojects/wrapper-manager-fds/lib/env.nix
Gabriel Arazas 7cc57ce319
wrapper-manager-fds: init
It's a prototype for now, yeah. It'll be improved.
2024-07-01 15:14:48 +08:00

23 lines
529 B
Nix

{ pkgs, lib, self }:
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,
modules ? [ ],
specialArgs ? { },
}:
pkgs.lib.evalModules {
modules = [ ../modules/wrapper-manager ] ++ modules;
specialArgs = specialArgs // {
modulesPath = builtins.toString ../modules/wrapper-manager;
};
};
}