From 3861d9a161276ff2cb7af63ae0073f9947b06a77 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 9 Apr 2024 10:02:58 +0300 Subject: [PATCH] flake: pass `inputs` to docs --- docs/default.nix | 10 +++++----- flake/packages.nix | 5 +---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/default.nix b/docs/default.nix index a597fb2..e67ce02 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -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 diff --git a/flake/packages.nix b/flake/packages.nix index bcf11e9..dec0614 100644 --- a/flake/packages.nix +++ b/flake/packages.nix @@ -5,10 +5,7 @@ pkgs, ... }: let - docs = import ../docs { - inherit pkgs; - nmdSrc = inputs.nmd; - }; + docs = import ../docs {inherit pkgs inputs;}; in { packages = {