mszep / pandoc_resume

The Markdown Resume
http://mszep.github.io/pandoc_resume/
MIT License
1.64k stars 759 forks source link

Build with Nix #85

Closed chfanghr closed 2 years ago

chfanghr commented 2 years ago

From nixos.org:

Nix provides developers with a complete and consistent development environment. Stop worrying how to install dependencies for your project.

With nix, we can build without installing any tools manually. The build environment also works identically across multiple os/arch.

mszep commented 2 years ago

Super interesting! I'll test it when I get a chance, and when if I can get it to work, will merge! Thanks for taking the time to submit a PR :-)

Skarlett commented 2 years ago

I can confirm PR work. shell.nix and flake.nix work.

the notable changes is that you use nix build to create the resume (instead of make) which will also bring in & cache all the dependencies (pandoc, texlive, gnumake).

instead of selecting a single file format to be created (pdf/html/etc), each format is generated inside of the result directory.

this largely is an alternative building method preferable to those who use nix as a package manager, and doesn't effect anything else at large.

mszep commented 2 years ago

This is awesome, thank you both!