nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5}:
6
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "pgf-pie";
9 version = "0.7";
10
11 src = fetchFromGitHub {
12 owner = "pgf-tikz";
13 repo = "pgf-pie";
14 tag = finalAttrs.version;
15 hash = "sha256-tAUv35AMgJW5JI2KIXxxXFihqdB7qbMmNpAYhpDbAxs=";
16 };
17
18 installPhase = ''
19 runHook preInstall
20
21 mkdir -p $out/share/texmf-nix
22 cp -prd doc tex/latex $out/share/texmf-nix/
23
24 runHook postInstall
25 '';
26
27 meta = {
28 homepage = "https://github.com/pgf-tikz/pgf-pie";
29 description = "Some LaTeX macros for pie charts using the PGF/TikZ package";
30 license = lib.licenses.gpl2Plus;
31 maintainers = [ ];
32 platforms = lib.platforms.unix;
33 };
34})