mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
This requires pulling quite a lot of code from nixpkgs in order to make the `either` type work correctly, the effects can be seen for example in the documentation of `ollama.promps` and `ollama.actions`
19 lines
518 B
Nix
19 lines
518 B
Nix
{
|
|
options-json,
|
|
runCommand,
|
|
installShellFiles,
|
|
nixos-render-docs,
|
|
}:
|
|
runCommand "nixvim-configuration-reference-manpage" {
|
|
nativeBuildInputs = [installShellFiles nixos-render-docs];
|
|
} ''
|
|
# Generate man-pages
|
|
mkdir -p $out/share/man/man5
|
|
nixos-render-docs -j $NIX_BUILD_CORES options manpage \
|
|
--revision unstable \
|
|
--header ${./nixvim-header.5} \
|
|
--footer ${./nixvim-footer.5} \
|
|
${options-json}/share/doc/nixos/options.json \
|
|
$out/share/man/man5/nixvim.5
|
|
compressManPages $out
|
|
''
|