From 6de3ba543d8e23962e45d7e2c32bb9ed86d70489 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 31 Mar 2024 21:47:37 +0200 Subject: [PATCH] nix: Use minimal set of texlive dependencies for docs-render --- nix/tools/docs.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nix/tools/docs.nix b/nix/tools/docs.nix index 2b08e526f5..b015dfbb0c 100644 --- a/nix/tools/docs.nix +++ b/nix/tools/docs.nix @@ -59,6 +59,24 @@ let ''; render = + let + pdflatex = texlive.combine { + inherit (texlive) + amsmath + booktabs + cancel + gensymb + mathdots + multirow + pgf + pgf-blur + scheme-basic + siunitx + standalone + yhmath + ; + }; + in checkedShellScript { name = "postgrest-docs-render"; @@ -67,7 +85,7 @@ let withTmpDir = true; } '' - ${texlive.combined.scheme-full}/bin/pdflatex -halt-on-error -output-directory="$tmpdir" db.tex + ${pdflatex}/bin/pdflatex -halt-on-error -output-directory="$tmpdir" db.tex ${imagemagick}/bin/convert -density 300 "$tmpdir/db.pdf" ../_static/db.png '';