python3Packages.sphinxcontrib-tikz: replace texlive.combine with texliveSmall.withPackages

This commit is contained in:
Vincenzo Mantova 2023-11-04 20:02:33 +00:00
parent 2e4e6991ac
commit 32be122447
2 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
, fetchPypi
, sphinx
, pdf2svg
, texLive
, texliveSmall
}:
buildPythonPackage rec {
@ -17,7 +17,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace sphinxcontrib/tikz.py \
--replace "config.latex_engine" "'${texLive}/bin/pdflatex'" \
--replace "config.latex_engine" "'${texliveSmall.withPackages (ps: with ps; [ standalone pgfplots ])}/bin/pdflatex'" \
--replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'"
'';

View File

@ -13244,9 +13244,7 @@ self: super: with self; {
sphinxcontrib-spelling = callPackage ../development/python-modules/sphinxcontrib-spelling { };
sphinxcontrib-tikz = callPackage ../development/python-modules/sphinxcontrib-tikz {
texLive = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-small standalone pgfplots; };
};
sphinxcontrib-tikz = callPackage ../development/python-modules/sphinxcontrib-tikz { };
sphinxcontrib-wavedrom = callPackage ../development/python-modules/sphinxcontrib-wavedrom { };