mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/output: add manDocsPackage
This commit is contained in:
parent
9487403532
commit
8938e09db1
5 changed files with 17 additions and 7 deletions
|
@ -9,6 +9,7 @@ let
|
|||
inherit (lib) types mkOption mkPackageOption;
|
||||
inherit (lib) optional optionalAttrs;
|
||||
builders = lib.nixvim.builders.withPkgs pkgs;
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -146,6 +147,16 @@ in
|
|||
readOnly = true;
|
||||
visible = false;
|
||||
};
|
||||
|
||||
manDocsPackage = mkOption {
|
||||
type = types.package;
|
||||
defaultText = lib.literalMD "`packages.<system>.man-docs` from Nixvim's flake";
|
||||
description = ''
|
||||
Nixvim's manpage documentation.
|
||||
'';
|
||||
readOnly = true;
|
||||
visible = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -370,6 +381,8 @@ in
|
|||
bat --language=lua "$init"
|
||||
'';
|
||||
};
|
||||
|
||||
manDocsPackage = config.flake.packages.${system}.man-docs;
|
||||
};
|
||||
|
||||
# Set `wrapRc` and `impureRtp`s option defaults with even lower priority than `mkOptionDefault`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue