Build process for my work resume.
- Work experience recorded using Dhall configuration language (
src/experience.dhall
)
let Resume
: Type
= { contact : ContactInfo
, skills : Skills
, history : List Job }
src/Main.hs
renders configuration into HTML document using blaze-html
renderJob :: Job -> BH.Html
renderJob Job {organization, position, duration, experiences} = BH.li $ do
...
- wkhtmltopdf renders HTML into PDF
$ nix develop github:djanatyn/resume#resume -c wkhtmltopdf --version
wkhtmltopdf 0.12.6
- All dependencies + build automation managed using Nix Flakes
buildPhase = ''
export RESUME_NIXPKGS_REV="${nixpkgs.rev}"
runhaskell $src/Main.hs
'';
installPhase = ''
mkdir -p $out && install -Dm755 resume.pdf $out/resume.pdf
'';
- avoid using LaTeX
nix build github:djanatyn/resume
Icons used are from Simple Icons (CC0):