docs: Allow to generate man pages for nixvim (#686)

This commit is contained in:
traxys 2023-11-06 11:52:30 +01:00 committed by GitHub
parent 2031834990
commit 229fe85d6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 213 additions and 1 deletions

View file

@ -0,0 +1,31 @@
{
python3,
lib,
nixos-render-docs,
}:
python3.pkgs.buildPythonApplication {
pname = "nixvim-render-docs";
version = "0.0";
format = "pyproject";
src = lib.cleanSourceWith {
filter = name: type:
lib.cleanSourceFilter name type
&& ! (type
== "directory"
&& builtins.elem (baseNameOf name) [
".pytest_cache"
".mypy_cache"
"__pycache__"
]);
src = ./src;
};
nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = [
nixos-render-docs
];
}