From af9dab9e404db241926b58be5a689d4460da694d Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 16 Jan 2024 17:05:13 +0100 Subject: [PATCH] Make sure pdfs can be built in CI as well --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3df7fec..93a9602 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ }; full-texlive = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-full; inherit ugent2016; }; build-diffed = pkgs.writeShellScriptBin "build-diffed" '' + PATH=$PATH:${pkgs.python3.withPackages (ps: [ ps.pygments ]).bin} set -E atexit() { git worktree remove -f .sent @@ -41,8 +42,8 @@ popd mkdir build ${full-texlive}/bin/latexdiff --math-markup=whole -t CFONT sent.tex book.tex > diff.tex - ${full-texlive}/bin/latexmk -f -pdf -lualatex -interaction=nonstopmode -output-directory=build book.tex - ${full-texlive}/bin/latexmk -f -pdf -lualatex -interaction=nonstopmode -output-directory=build diff.tex + ${full-texlive}/bin/latexmk -f -pdf -lualatex -shell-escape -interaction=nonstopmode -output-directory=build book.tex + ${full-texlive}/bin/latexmk -f -pdf -lualatex -shell-escape -interaction=nonstopmode -output-directory=build diff.tex mv build/book.pdf build/diff.pdf . ''; ugent2016 = pkgs.stdenvNoCC.mkDerivation (finalAttrs: {