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

stdenv.mkDerivation rec {
  pname = "pgfplots";
  version = "1.5.1";

  src = fetchurl {
    url = "mirror://sourceforge/pgfplots/pgfplots_${version}.tds.zip";
    sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi";
  };

  nativeBuildInputs = [ unzip ];

  unpackPhase = "unzip $src";

  dontBuild = true;

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

  meta = with 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;
  };
}