report: Idea to reduce build time

This commit is contained in:
Rodrigo Arias 2020-10-27 10:49:27 +01:00
parent 43991e9173
commit 7c5345f4bc

View File

@ -7,6 +7,11 @@
, texlive
}:
let
# TODO: We can select only which elements we need from fig by using:
# echo [ $(grep -o '@[^ @]*@' garlic/report.tex | sed 's/@//g') ]
# and them importing as valid nix lang.
# By now, we require all plots
figJSON = writeText "fig.json" (builtins.toJSON fig);
in
stdenv.mkDerivation {