summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive/moderntimeline.nix
blob: f7d8f1254c55998021bed8621837dff6f3b2b1a0 (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
args: with args;
rec {
  version = "0.7";
  name = "moderntimeline-${version}";
  src = fetchurl {
    urls = [
      "http://www.ctan.org/tex-archive/macros/latex/contrib/moderntimeline.zip"
      "http://mirror.ctan.org/macros/latex/contrib/moderntimeline.zip"
    ];
    sha256 = "0dxwybanj7qvbr69wgsllha1brq6qjsnjfff6nw4r3nijzvvh876";
  };

  buildInputs = [texLive unzip];
  phaseNames = ["doCopy"];
  doCopy = fullDepEntry (''
    mkdir -p $out/texmf-dist/tex/latex/moderntimeline $out/texmf-dist/doc/moderntimeline $out/share
    mv *.dtx *.ins $out/texmf-dist/tex/latex/moderntimeline/
    mv *.pdf $out/texmf-dist/doc/moderntimeline/
    ln -s $out/texmf* $out/share/
  '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];

  meta = {
    description = "the moderntimeline extensions for moderncv";
    maintainers = [ args.lib.maintainers.simons ];

    # Actually, arch-independent..
    hydraPlatforms = [];
  };
}