aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/sphinxcontrib-tikz/binary-paths.patch
blob: 847a6e076918b10857fed27a639e0f668db0b32c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/sphinxcontrib/tikz.py b/sphinxcontrib/tikz.py
index ee21113..a4f4589 100644
--- a/sphinxcontrib/tikz.py
+++ b/sphinxcontrib/tikz.py
@@ -242,7 +242,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
         tf.write(latex)
         tf.close()
 
-        system([self.builder.config.latex_engine, '--interaction=nonstopmode',
+        system(['@texLive@/bin/pdflatex', '--interaction=nonstopmode',
                 'tikz-%s.tex' % shasum],
                self.builder)
 
@@ -281,7 +281,7 @@ def render_tikz(self, node, libs='', stringsubst=False):
                     '-sOutputFile=%s' % outfn, '-r' + resolution + 'x' + resolution,
                     '-f', 'tikz-%s.pdf' % shasum], self.builder)
         elif self.builder.config.tikz_proc_suite == "pdf2svg":
-            system(['pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
+            system(['@pdf2svg@/bin/pdf2svg', 'tikz-%s.pdf' % shasum, outfn], self.builder)
         else:
             self.builder._tikz_warned = True
             raise TikzExtError('Error (tikz extension): Invalid configuration '