about summary refs log tree commit diff
path: root/users/glittershark/resume/default.nix
diff options
context:
space:
mode:
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
+''