summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/pgf/3.x.nix
blob: 5c0c387a340bc76f5532eb379b6ff7f43b435412 (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
{stdenv, fetchurl, unzip}:

stdenv.mkDerivation {
  name = "pgf-3.00";

  src = fetchurl {
    url = http://downloads.sourceforge.net/project/pgf/pgf/version%203.0.0/pgf_3.0.0.tds.zip;
    sha256 = "0kj769hyp4z2zmdv3f8xv443wcfqn5nkkbzxzqgfxjizlz81aav7";
  };

  buildInputs = [ unzip ];

  # Multiple files problem
  unpackPhase = ''
    mkdir pgf
    cd pgf
    unzip $src
  '';

  buildPhase = "true";

  installPhase = "
    mkdir -p $out/share/texmf-nix
    cp -prd * $out/share/texmf-nix
  ";
  meta = {
    branch = "3";
  };
}