Hello, I tried to upgrade pgf/tikz in texlive to version 2.10 (which I need to work). I succeded from a tar.gz in the debian mirror, but never from the .tdf.zip from sourceforge. The nix expression is not completely trivial, I managed to have an accepted [ unzip ] as buildInputs, but I got "unzip command not found".
The download page is: http://sourceforge.net/projects/pgf/ And the nix file with a working .tar.gz is attached. Cheers, Christophe
args: with args;
rec {
name = "texlive-pgf-2010";
src = fetchurl {
url =
"ftp://debian.lcs.mit.edu/debian/pool/main/p/pgf/pgf_2.10.orig.tar.gz";
sha256 = "087i0fya6z42wmw7xlj3kyi3bwjg0avpxb01v4xy7ycxnkk94834";
};
propagatedBuildInputs = [texLiveLatexXColor texLive];
phaseNames = ["doCopy"];
doCopy = fullDepEntry (''
mkdir -p $out/share/
mkdir -p $out/texmf/tex/generic/pgf
cp -r * $out/texmf/tex/generic/pgf
ln -s $out/texmf* $out/share/
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
meta = {
description = "Extra components for TeXLive: graphics package";
longDescription = ''
PGF is a macro package for creating graphics. It is platform-
and format-independent and works together with the most
important TeX backend drivers, including pdftex and dvips. It
comes with a user-friedly syntax layer called TikZ.
Its usage is similar to pstricks and the standard picture
environment. PGF works with plain (pdf-)TeX, (pdf-)LaTeX, and
ConTeXt. Unlike pstricks , it can produce either PostScript or
PDF output.
'';
license = [ "GPLv2" "LPPLv1.3c" ];
homepage = http://tug.ctan.org/tex-archive/graphics/pgf/;
};
}
pgp_8mTlguSTT.pgp
Description: PGP signature
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
