Commit 32be1224 authored by Vincenzo Mantova's avatar Vincenzo Mantova
Browse files

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

parent 2e4e6991
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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'"
  '';

+1 −3
Original line number Diff line number Diff line
@@ -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 { };