Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5}: 6 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "pgf"; 9 version = "2.10"; 10 11 src = fetchFromGitHub { 12 owner = "pgf-tikz"; 13 repo = "pgf"; 14 tag = finalAttrs.version; 15 hash = "sha256-AA+XFhEkJifODJb6SppnxhR4lMlMNaH+k10UF6QisJ8="; 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 context doc generic latex plain $out/share/texmf-nix/ 26 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/pgf-tikz/pgf"; 32 description = "Portable Graphic Format for TeX"; 33 branch = lib.versions.major version; 34 license = licenses.gpl2Plus; 35 maintainers = with maintainers; [ ]; 36 platforms = platforms.unix; 37 }; 38})