summary refs log tree commit diff
path: root/pkgs/applications/misc/kitty/fix-paths.patch
blob: 380f6d7491464226e73b9ea64808f72c3a1ec1a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -3,7 +3,7 @@
# Patching is needed here for the following reason:
# * importing the `constants` package from Kitty has a side effect that it
#   creates the user configuration directory. This package gets imported
#   while sphinx scans the code for documentation strings.
#
 
 # You can set these variables from the command line.
 SPHINXOPTS    = -j auto -T $(FAIL_WARN)
-SPHINXBUILD   = sphinx-build
+SPHINXBUILD   = PYTHONPATH=${PYTHONPATH}:.. HOME=${TMPDIR}/kitty-build-home sphinx-build
 SPHINXPROJ    = kitty
 SOURCEDIR     = .
 BUILDDIR      = _build