about summary refs log tree commit diff
path: root/users/grfn/resume/default.nix
blob: 4454e74c8261dcaed2867913285b588fb4a4cd62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ pkgs, ... }:

with pkgs.lib;

pkgs.runCommand "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
''