about summary refs log tree commit diff
path: root/users/glittershark/resume/default.nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-11-16T16·01-0500
committerglittershark <grfn@gws.fyi>2020-11-16T16·10+0000
commitb1f2c2f48e2d83abea0a5396589a7551096a09f2 (patch)
tree5ba993e87104824c941f8642f97a3a086d57a04a /users/glittershark/resume/default.nix
parentbdc5d0cfa0b81cb36002bae0e4dcb7b43e074132 (diff)
feat(glittershark): Add resume + deploy it to gws.fyi r/1879
Change-Id: If9cf64c97621313af86074752d0959506059888a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2079
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/resume/default.nix')
-rw-r--r--users/glittershark/resume/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/users/glittershark/resume/default.nix b/users/glittershark/resume/default.nix
new file mode 100644
index 000000000000..2db6a650bc6e
--- /dev/null
+++ b/users/glittershark/resume/default.nix
@@ -0,0 +1,37 @@
+{ pkgs, ... }:
+
+with pkgs.lib;
+
+pkgs.runCommandNoCC "resume.pdf" {
+  buildInputs = [(pkgs.texlive.combine {
+    inherit (pkgs.texlive)
+      capt-of
+      collection-fontsrecommended
+      enumitem
+      etoolbox
+      fancyvrb
+      float
+      fncychap
+      framed
+      l3packages
+      microtype
+      needspace
+      parskip
+      scheme-basic
+      tabulary
+      titlesec
+      ulem
+      upquote
+      varwidth
+      wrapfig
+      xcolor
+      ;
+  })];
+} ''
+  cp ${builtins.filterSource (path: type:
+    type == "regular" &&
+    any (ext: hasSuffix ext path) [".sty" ".cls" ".tex" ".png"]
+  ) ./.}/* .
+  pdflatex ./resume.tex
+  cp resume.pdf $out
+''