nix_config/trivionomicon/doctrine/lib/default.nix
Fabian Montero f585491296 Add 'trivionomicon/' from commit 'bf39923f9c'
git-subtree-dir: trivionomicon
git-subtree-mainline: 98a32736d6
git-subtree-split: bf39923f9c
2025-08-25 09:07:16 -06:00

23 lines
412 B
Nix

{
lib,
doctrine,
pkgs,
}: let
close = vars: f: args:
(
if builtins.isPath f
then import f
else f
)
(args // vars);
closeLib = close {inherit lib;};
closeFull = close {inherit lib pkgs doctrine;};
in
{
inherit close;
importAll = closeLib ./import-all.nix;
}
// lib.optionalAttrs (doctrine.namespace != null) {
mkModule = closeFull ./mk-module.nix;
}