mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
23 lines
529 B
Nix
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;
|
||
|
};
|
||
|
};
|
||
|
}
|