summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive/moderntimeline.nix
blob: 6d57a659b63b2622693e19be9139c4a4cef989e9 (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
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";
    maintainers = [ args.lib.maintainers.simons ];

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