mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 14:45:26 +02:00
treewide: avoid passing pkgs
to our lib
In the two places where our "helpers" lib is exclusively internal (flake module args and building the docs), we no longer supply `pkgs`. In the other 4 locations, we now note why we still do in a comment.
This commit is contained in:
parent
76df09619d
commit
191b0a9502
7 changed files with 11 additions and 10 deletions
|
@ -7,7 +7,7 @@ let
|
|||
# We overlay a few tweaks into pkgs, for use in the docs
|
||||
pkgs = import ./pkgs.nix { inherit system nixpkgs; };
|
||||
inherit (pkgs) lib;
|
||||
helpers = import ../lib { inherit lib pkgs; };
|
||||
helpers = import ../lib { inherit lib; };
|
||||
|
||||
nixvimPath = toString ./..;
|
||||
|
||||
|
@ -34,7 +34,9 @@ let
|
|||
};
|
||||
|
||||
evaledModules = lib.evalModules {
|
||||
inherit (helpers.modules) specialArgs;
|
||||
specialArgs = helpers.modules.specialArgsWith {
|
||||
defaultPkgs = pkgs;
|
||||
};
|
||||
modules = [
|
||||
../modules/top-level
|
||||
{ isDocs = true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue