summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive/moderntimeline.nix
blob: caa140d42c79ca9987cf1a71c72a4389c4c43a6e (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
args @ {texLive, unzip, ...}: with args;
rec {
  version = "0.9";
  name = "moderntimeline-${version}";
  src = fetchurl {
    url = "https://github.com/raphink/moderntimeline/archive/v0.9.zip";
    sha256 = "1h1sfdh0whb74y6f999hs80flwpdbs2n4n2b9c450rvs1y7abcml";
  };

  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 *.md $out/texmf-dist/doc/moderntimeline/
    ln -s $out/texmf* $out/share/
  '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];

  meta = {
    description = "The moderntimeline extensions for moderncv";
    # Actually, arch-independent..
    hydraPlatforms = [];
  };
}