nix: Use minimal set of texlive dependencies for docs-render

This commit is contained in:
Wolfgang Walther
2024-03-31 22:05:02 +02:00
parent 06ff56d323
commit 6de3ba543d
+19 -1
View File
@@ -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
'';