Repository which builds moderncv documents using nixpkgs.
This repository can be used as a template to create a (private) repository which can automatically generate PDFs from the LaTeX document in tagged releases.
Example of PDF generated from template.tex.
Follow the instructions for installing Nix:
sh <(curl -L https://nixos.org/nix/install) --daemon
With Nix installed, building e.g. resume.tex
in the current directory can
be done with:
nix run .#xelatex resume.tex
with the resulting PDF ending up in ./resume.pdf
.
Alternatively, you can enter a shell that can build the LaTeX documents by using direnv.
Allowing the .envrc
file with
direnv allow
will load the packages from the default
devShell
in the flake.nix
,
which allows building resume.tex
using:
just resume.tex
or
xelatex resume.tex
to generate resume.pdf
in the current directory.
The GitHub Action workflow defined in .github/workflows
will build and
upload the generated PDF for tags which start with v
. e.g. v1.0
.