summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive/xcolor.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive/xcolor.nix')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/xcolor.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/xcolor.nix b/pkgs/tools/typesetting/tex/texlive/xcolor.nix
new file mode 100644
index 000000000000..4e8d5eeb30b3
--- /dev/null
+++ b/pkgs/tools/typesetting/tex/texlive/xcolor.nix
@@ -0,0 +1,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
+    ensureDir $out/share/
+
+    ensureDir $out/texmf/tex/latex/xcolor
+    ensureDir $out/texmf/dvips/xcolor
+    latex xcolor.ins 
+    cp *.sty *.def $out/texmf/tex/latex/xcolor
+    cp *.pro $out/texmf/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
+    ensureDir $out/texmf/doc/latex-xcolor
+    cp *  $out/texmf/doc/latex-xcolor
+
+    ln -s $out/texmf* $out/share/
+  '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
+
+  meta = {
+    description = "Extra components for TeXLive: LaTeX color support";
+  };
+}