diff --git a/docs/default.nix b/docs/default.nix index e451c6ee..0f6546d4 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -1,4 +1,4 @@ -{ helpers, pkgs }: +{ getHelpers, pkgs }: let # Extend nixpkg's lib, so that we can handle recursive leaf types such as `either` lib = pkgs.lib.extend ( @@ -32,6 +32,8 @@ let inherit lib; }; + helpers = getHelpers pkgsDoc false; + nixvimPath = toString ./..; gitHubDeclaration = user: repo: branch: subpath: { diff --git a/flake-modules/packages.nix b/flake-modules/packages.nix index bba6505a..51d27a6d 100644 --- a/flake-modules/packages.nix +++ b/flake-modules/packages.nix @@ -1,14 +1,10 @@ +{ getHelpers, ... }: { perSystem = - { - pkgsUnfree, - config, - helpers, - ... - }: + { pkgsUnfree, config, ... }: { packages = import ../docs { - inherit helpers; + inherit getHelpers; # Building the docs evaluates each plugin's default package, some of which are unfree pkgs = pkgsUnfree; };