borgbackup: migrate to sphinxHook

This commit is contained in:
Martin Weinelt 2022-08-23 15:46:52 +02:00
parent 8a26deba06
commit 5a852f4085
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -33,13 +33,15 @@ python3.pkgs.buildPythonApplication rec {
setuptools-scm
# docs
sphinx
sphinxHook
guzzle_sphinx_theme
# shell completions
installShellFiles
];
sphinxBuilders = [ "singlehtml" "man" ];
buildInputs = [
libb2
lz4
@ -67,14 +69,6 @@ python3.pkgs.buildPythonApplication rec {
];
postInstall = ''
make -C docs singlehtml
mkdir -p $out/share/doc/borg
cp -R docs/_build/singlehtml $out/share/doc/borg/html
make -C docs man
mkdir -p $out/share/man
cp -R docs/_build/man $out/share/man/man1
installShellCompletion --cmd borg \
--bash scripts/shell_completions/bash/borg \
--fish scripts/shell_completions/fish/borg.fish \