mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
misc: refactor helpers propagation
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
This commit is contained in:
parent
3bbb3d5453
commit
5d3ed3a09e
12 changed files with 100 additions and 40 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
rawModules,
|
||||
helpers,
|
||||
pkgs,
|
||||
}: let
|
||||
pkgsDoc =
|
||||
|
@ -73,7 +74,13 @@ in
|
|||
options-json =
|
||||
(pkgsDoc.nixosOptionsDoc
|
||||
{
|
||||
inherit (lib.evalModules {modules = topLevelModules;}) options;
|
||||
inherit
|
||||
(lib.evalModules {
|
||||
modules = topLevelModules;
|
||||
specialArgs.helpers = helpers;
|
||||
})
|
||||
options
|
||||
;
|
||||
inherit transformOptions;
|
||||
warningsAreErrors = false;
|
||||
})
|
||||
|
@ -86,5 +93,6 @@ in
|
|||
docs = pkgsDoc.callPackage ./mdbook {
|
||||
inherit transformOptions;
|
||||
modules = topLevelModules;
|
||||
inherit helpers;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
pkgs,
|
||||
lib,
|
||||
modules,
|
||||
helpers,
|
||||
nixosOptionsDoc,
|
||||
transformOptions,
|
||||
}:
|
||||
with lib; let
|
||||
options = lib.evalModules {
|
||||
inherit modules;
|
||||
specialArgs = {inherit pkgs lib;};
|
||||
specialArgs = {inherit pkgs lib helpers;};
|
||||
};
|
||||
|
||||
mkMDDoc = options:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue