Skip to content

Commit

Permalink
use that setting in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
fkz committed Sep 17, 2023
1 parent b5de9f9 commit 46a8604
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ stdenv.mkDerivation {
lib.hasInfix "cards" path ||
lib.hasInfix "fonts" path ||
lib.hasSuffix ".tex" path ||
lib.hasSuffix ".cls" path;
lib.hasSuffix ".cls" path ||
lib.hasSuffix ".latexmkrc" path;
};
buildInputs = [ (texlive.combine { inherit (texlive) scheme-small latexmk; }) ];
buildPhase = ''
max_print_line=1000 latexmk -synctex=1 -interaction=nonstopmode -halt-on-error -file-line-error -xelatex cards.tex a4print.tex
max_print_line=1000 latexmk
# strip /nix/<...> from cards.log to remove artifical dependency
sed -i 's|/nix/store/.\{32\}|/installation|g' cards.log
'';
Expand Down

0 comments on commit 46a8604

Please sign in to comment.