about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-23 15:46:52 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-24 23:02:26 +0200
commit5a852f4085cbf4d6521a4cbb775dc9a15bd0298c (patch)
tree5ed8598c73d276a4865e41aac848ac0c4426065b
parent8a26deba0649a05bd978804a6af3a710548fcc0b (diff)
borgbackup: migrate to sphinxHook
-rw-r--r--pkgs/tools/backup/borgbackup/default.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/tools/backup/borgbackup/default.nix b/pkgs/tools/backup/borgbackup/default.nix
index 7ffca4203bbcc..adfd0b42e399c 100644
--- a/pkgs/tools/backup/borgbackup/default.nix
+++ b/pkgs/tools/backup/borgbackup/default.nix
@@ -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 \