summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive/xcolor.nix
blob: f02bf351c3f641de98ce79ed92c3c5291c767ad6 (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
args: with args;
rec {
  name = "texlive-latex-xcolor-2007";
  src = fetchurl {
    url = mirror://debian/pool/main/l/latex-xcolor/latex-xcolor_2.11.orig.tar.gz;
    sha256 = "0z78xfn5iq5ncg82sd6v2qrxs8p9hs3m4agaz90p4db5dvk2w0mn";
  };

  buildInputs = [texLive];
  phaseNames = ["doCopy"];
  doCopy = fullDepEntry (''
    export HOME=$PWD
    mkdir -p $out/share/

    mkdir -p $out/texmf-dist/tex/latex/xcolor
    mkdir -p $out/texmf-dist/dvips/xcolor
    latex xcolor.ins
    cp *.sty *.def $out/texmf-dist/tex/latex/xcolor
    cp *.pro $out/texmf-dist/dvips/xcolor

    #latex xcolor.dtx
    #latex xcolor.dtx
    #makeindex -s gind.ist xcolor.idx
    #latex xcolor.dtx
    #latex xcolor.dtx

    rm *.sty *.pro *.ins *.def *.dtx
    mkdir -p $out/texmf-dist/doc/latex-xcolor
    cp *  $out/texmf-dist/doc/latex-xcolor

    ln -s $out/texmf* $out/share/
  '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];

  meta = {
    description = "Extra components for TeXLive: LaTeX color support";
  };
}