nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "pgfplots";
9 version = "1.18.2";
10
11 src = fetchFromGitHub {
12 owner = "pgf-tikz";
13 repo = "pgfplots";
14 tag = finalAttrs.version;
15 hash = "sha256-Qw7H/oCZDtqm6sdCfwDm9SbIxdoemmhj/XCaHZf5/5c=";
16 };
17
18 installPhase = ''
19 runHook preInstall
20
21 mkdir -p $out/share/texmf-nix
22 cp -prd doc tex/{context,generic,latex,plain} $out/share/texmf-nix/
23
24 runHook postInstall
25 '';
26
27 meta = {
28 homepage = "https://pgfplots.sourceforge.net";
29 description = "TeX package to draw plots directly in TeX in two and three dimensions";
30 license = lib.licenses.gpl3Plus;
31 maintainers = [ ];
32 platforms = lib.platforms.unix;
33 };
34})