nix-module-wrapper-manager-fds/lib/default.nix

37 lines
995 B
Nix
Raw Permalink Normal View History

# The wrapper-manager library set. It should only require a nixpkgs instance to
# make initializing this set easier. This what makes it possible to be used as
# part of the module environments and as a standalone library.
#
# Since this library set is typically modularly set in nixpkgs module
# environments, we'll have to make sure it doesn't contain any functions that
# should return a nixpkgs module or anything of the sort. Basically, this
# should remain as a utility function that is usable outside of the nixpkgs
# module.
{ pkgs }:
2024-07-31 13:51:40 +00:00
pkgs.lib.makeExtensible (
self:
let
2024-07-31 13:51:40 +00:00
callLibs =
file:
import file {
inherit (pkgs) lib;
inherit pkgs self;
};
in
{
env = import ./env.nix;
utils = callLibs ./utils.nix;
modules = callLibs ./modules.nix;
inherit (self.env) build eval;
2025-01-12 09:58:39 +00:00
inherit (self.utils)
getBin
getLibexec
getXdgDataDirs
getXdgConfigDirs
;
inherit (self.modules) makeWraparound;
2024-07-31 13:51:40 +00:00
}
)