about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-10-27 19:12:22 -0700
committerFranck Cuny <franck@fcuny.net>2022-10-27 19:12:22 -0700
commitb0a025389023332d61da829808d8d6e467752455 (patch)
treee4fccc26056049f8bbacb24f4752ba66ef6fb6ab
parentref(css): reduce thickness of decoration for headers (diff)
downloadfcuny.net-b0a025389023332d61da829808d8d6e467752455.tar.gz
feat(content): generate the resume in PDF too
That way if someone is looking for it ...
-rw-r--r--flake.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index dc15e9b..1821893 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,12 +19,14 @@
               pname = "fcuny.net";
               version = self.lastModifiedDate;
               src = ./.;
-              buildInputs = [ hugo git pandoc ];
+              buildInputs = [ hugo git pandoc texlive.combined.scheme-tetex ];
               buildPhase = ''
                 mkdir -p $out
                 ${pkgs.hugo}/bin/hugo --minify --destination $out
                 ${pkgs.pandoc}/bin/pandoc --self-contained --css static/css/resume.css \
                   --from org --to html --output $out/resume.html content/resume.org
+                ${pkgs.pandoc}/bin/pandoc --self-contained --css static/css/resume.css \
+                  --from org --to pdf --output $out/resume.pdf content/resume.org
               '';
               dontInstall = true;
             };