Skip to content

Commit

Permalink
nix: Use minimal set of texlive dependencies for docs-render
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Mar 31, 2024
1 parent 06ff56d commit 1d2d8f7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion nix/tools/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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
'';

Expand Down

0 comments on commit 1d2d8f7

Please sign in to comment.