mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 12:45:57 +01:00
flake: pass inputs
to docs
This commit is contained in:
parent
88cf62fbc8
commit
3861d9a161
2 changed files with 6 additions and 9 deletions
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib ? import ../lib/stdlib-extended.nix pkgs.lib,
|
lib ? import ../lib/stdlib-extended.nix pkgs.lib inputs,
|
||||||
nmdSrc,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nmd = import nmdSrc {
|
nmd = import inputs.nmd {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
# The DocBook output of `nixos-render-docs` doesn't have the change
|
# The DocBook output of `nixos-render-docs` doesn't have the change
|
||||||
# `nmd` uses to work around the broken stylesheets in
|
# `nmd` uses to work around the broken stylesheets in
|
||||||
|
@ -103,9 +103,9 @@
|
||||||
'';
|
'';
|
||||||
# Generate the HTML manual pages
|
# Generate the HTML manual pages
|
||||||
neovim-flake-manual = pkgs.callPackage ./manual.nix {
|
neovim-flake-manual = pkgs.callPackage ./manual.nix {
|
||||||
|
inherit (inputs) nmd;
|
||||||
inherit revision;
|
inherit revision;
|
||||||
outputPath = "share/doc/neovim-flake";
|
outputPath = "share/doc/neovim-flake";
|
||||||
nmd = nmdSrc;
|
|
||||||
options = {
|
options = {
|
||||||
neovim-flake = nvimModuleDocs.optionsJSON;
|
neovim-flake = nvimModuleDocs.optionsJSON;
|
||||||
};
|
};
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
html = neovim-flake-manual;
|
html = neovim-flake-manual;
|
||||||
htmlOpenTool = pkgs.callPackage ./html-open-tool.nix {} {inherit html;};
|
htmlOpenTool = pkgs.callPackage ./html-open-tool.nix {} {inherit html;};
|
||||||
in {
|
in {
|
||||||
inherit nmdSrc;
|
inherit (inputs) nmd;
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
# TODO: Use `hmOptionsDocs.optionsJSON` directly once upstream
|
# TODO: Use `hmOptionsDocs.optionsJSON` directly once upstream
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
docs = import ../docs {
|
docs = import ../docs {inherit pkgs inputs;};
|
||||||
inherit pkgs;
|
|
||||||
nmdSrc = inputs.nmd;
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
packages =
|
packages =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue