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
or
curl -o install-nix-2.3.8 https://releases.nixos.org/nix/nix-2.3.8/install
curl -o install-nix-2.3.8.asc https://releases.nixos.org/nix/nix-2.3.8/install.asc
gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE
gpg2 --verify ./install-nix-2.3.8.asc
# then: $ sh ./install-nix-2.3.8
With Nix installed, building e.g. resume.tex
in the current directory can
be done with:
./nix-build-with-document.sh resume
with the resulting PDF ending up in ./result/resume.pdf
.
Alternatively, you can enter a shell that can build the LaTeX documents by running:
nix-shell
then:
[nix-shell:~/nixpkgs-moderncv]$ 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
.