nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "pgf";
9 version = "3.1.11a";
10
11 src = fetchFromGitHub {
12 owner = "pgf-tikz";
13 repo = "pgf";
14 tag = finalAttrs.version;
15 hash = "sha256-+OxQ7sf5qh9hiVdCapJOUUwxDNsbvCXZEupN52wqldE=";
16 };
17
18 dontConfigure = true;
19 dontBuild = true;
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir -p $out/share/texmf-nix
25 cp -prd doc source tex/{context,generic,latex,plain} $out/share/texmf-nix/
26
27 runHook postInstall
28 '';
29
30 meta = {
31 homepage = "https://github.com/pgf-tikz/pgf";
32 description = "Portable Graphic Format for TeX - version ${finalAttrs.version}";
33 branch = lib.versions.major finalAttrs.version;
34 license = lib.licenses.gpl2Plus;
35 maintainers = [ ];
36 platforms = lib.platforms.unix;
37 };
38})