summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/pgfplots/default.nix
blob: 998f61786db45fc772837fcbf457f83d513b83ae (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
{stdenv, fetchurl, unzip}:

stdenv.mkDerivation {
  name = "pgfplots-1.5.1";

  src = fetchurl {
    url = "mirror://sourceforge/pgfplots/pgfplots_1.5.1.tds.zip";
    sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi";
  };

  buildInputs = [ unzip ];

  unpackPhase = "unzip $src";

  dontBuild = true;

  installPhase = "
    mkdir -p $out/share/texmf-nix
    cp -prd * $out/share/texmf-nix
  ";

  meta = with stdenv.lib; {
    description = "TeX package to draw plots directly in TeX in two and three dimensions";
    homepage = "http://pgfplots.sourceforge.net";
    platforms = platforms.unix;
    license = licenses.gpl3Plus;
  };
}