docs: use pkgsDoc to build helpers

This commit is contained in:
Matt Sturgeon 2024-07-06 00:22:17 +01:00
parent 367380bd84
commit edc8602d47
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 6 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ helpers, pkgs }: { getHelpers, pkgs }:
let let
# Extend nixpkg's lib, so that we can handle recursive leaf types such as `either` # Extend nixpkg's lib, so that we can handle recursive leaf types such as `either`
lib = pkgs.lib.extend ( lib = pkgs.lib.extend (
@ -32,6 +32,8 @@ let
inherit lib; inherit lib;
}; };
helpers = getHelpers pkgsDoc false;
nixvimPath = toString ./..; nixvimPath = toString ./..;
gitHubDeclaration = user: repo: branch: subpath: { gitHubDeclaration = user: repo: branch: subpath: {

View file

@ -1,14 +1,10 @@
{ getHelpers, ... }:
{ {
perSystem = perSystem =
{ { pkgsUnfree, config, ... }:
pkgsUnfree,
config,
helpers,
...
}:
{ {
packages = import ../docs { packages = import ../docs {
inherit helpers; inherit getHelpers;
# Building the docs evaluates each plugin's default package, some of which are unfree # Building the docs evaluates each plugin's default package, some of which are unfree
pkgs = pkgsUnfree; pkgs = pkgsUnfree;
}; };