mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 09:04:54 +02:00
lib/modules: init with specialArgs
helpers
This commit is contained in:
parent
491ca5cf51
commit
27c4c9c210
9 changed files with 35 additions and 49 deletions
|
@ -40,6 +40,8 @@ let
|
|||
pkgs = pkgsDoc;
|
||||
};
|
||||
|
||||
inherit (helpers.modules) specialArgs;
|
||||
|
||||
nixvimPath = toString ./..;
|
||||
|
||||
gitHubDeclaration = user: repo: branch: subpath: {
|
||||
|
@ -75,16 +77,7 @@ let
|
|||
|
||||
options-json =
|
||||
(pkgsDoc.nixosOptionsDoc {
|
||||
inherit
|
||||
(lib.evalModules {
|
||||
inherit modules;
|
||||
specialArgs = {
|
||||
inherit helpers;
|
||||
defaultPkgs = pkgsDoc;
|
||||
};
|
||||
})
|
||||
options
|
||||
;
|
||||
inherit (lib.evalModules { inherit modules specialArgs; }) options;
|
||||
inherit transformOptions;
|
||||
warningsAreErrors = false;
|
||||
}).optionsJSON;
|
||||
|
@ -113,10 +106,10 @@ in
|
|||
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
||||
docs = pkgsDoc.callPackage ./mdbook {
|
||||
inherit
|
||||
helpers
|
||||
modules
|
||||
hmOptions
|
||||
transformOptions
|
||||
specialArgs
|
||||
;
|
||||
# TODO: Find how to handle stable when 24.11 lands
|
||||
search = mkSearch "/nixvim/search/";
|
||||
|
|
|
@ -2,21 +2,15 @@
|
|||
pkgs,
|
||||
lib,
|
||||
modules,
|
||||
helpers,
|
||||
nixosOptionsDoc,
|
||||
transformOptions,
|
||||
hmOptions,
|
||||
search,
|
||||
specialArgs,
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
options = lib.evalModules {
|
||||
inherit modules;
|
||||
specialArgs = {
|
||||
inherit helpers;
|
||||
defaultPkgs = pkgs;
|
||||
};
|
||||
};
|
||||
options = lib.evalModules { inherit modules specialArgs; };
|
||||
|
||||
inherit (options.config.meta) nixvimInfo;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue