flake: pass inputs to docs

This commit is contained in:
NotAShelf 2024-04-09 10:02:58 +03:00
parent 88cf62fbc8
commit 3861d9a161
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 6 additions and 9 deletions

View file

@ -1,10 +1,10 @@
{
inputs,
pkgs,
lib ? import ../lib/stdlib-extended.nix pkgs.lib,
nmdSrc,
lib ? import ../lib/stdlib-extended.nix pkgs.lib inputs,
...
}: let
nmd = import nmdSrc {
nmd = import inputs.nmd {
inherit lib;
# The DocBook output of `nixos-render-docs` doesn't have the change
# `nmd` uses to work around the broken stylesheets in
@ -103,9 +103,9 @@
'';
# Generate the HTML manual pages
neovim-flake-manual = pkgs.callPackage ./manual.nix {
inherit (inputs) nmd;
inherit revision;
outputPath = "share/doc/neovim-flake";
nmd = nmdSrc;
options = {
neovim-flake = nvimModuleDocs.optionsJSON;
};
@ -113,7 +113,7 @@
html = neovim-flake-manual;
htmlOpenTool = pkgs.callPackage ./html-open-tool.nix {} {inherit html;};
in {
inherit nmdSrc;
inherit (inputs) nmd;
options = {
# TODO: Use `hmOptionsDocs.optionsJSON` directly once upstream

View file

@ -5,10 +5,7 @@
pkgs,
...
}: let
docs = import ../docs {
inherit pkgs;
nmdSrc = inputs.nmd;
};
docs = import ../docs {inherit pkgs inputs;};
in {
packages =
{