mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 11:45:28 +02:00
docs: use pkgsDoc to build helpers
This commit is contained in:
parent
367380bd84
commit
edc8602d47
2 changed files with 6 additions and 8 deletions
|
@ -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: {
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue