nix: remove texlive dependencies from postgrest-docs-render

This commit is contained in:
Laurence Isla
2024-06-27 14:08:16 -05:00
committed by Steve Chavez
parent d3292d42de
commit 5a1e9b01e4
3 changed files with 0 additions and 123 deletions
-24
View File
@@ -2,10 +2,8 @@
, aspellDicts
, buildToolbox
, checkedShellScript
, imagemagick
, python3
, python3Packages
, texlive
, writers
, plantuml
}:
@@ -61,35 +59,13 @@ 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";
docs = "Render the diagrams.";
workingDir = "/docs/_diagrams";
withTmpDir = true;
}
''
${pdflatex}/bin/pdflatex -halt-on-error -output-directory="$tmpdir" db.tex
${imagemagick}/bin/convert -density 300 "$tmpdir/db.pdf" ../_static/db.png
${plantuml}/bin/plantuml -tsvg uml/*.uml -o ../../_static
${plantuml}/bin/plantuml -tsvg -darkmode uml/dark/*.uml -o ../../../_static
'';