pgf-2.x: 2.00 -> 2.10

This commit is contained in:
AndersonTorres 2022-10-29 15:24:45 -03:00
parent c482175b03
commit a2de5412da
3 changed files with 38 additions and 25 deletions

View file

@ -0,0 +1,37 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "pgf";
version = "2.10";
src = fetchFromGitHub {
owner = "pgf-tikz";
repo = "pgf";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-AA+XFhEkJifODJb6SppnxhR4lMlMNaH+k10UF6QisJ8=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/texmf-nix
cp -prd context doc generic latex plain $out/share/texmf-nix/
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/pgf-tikz/pgf";
description = "A Portable Graphic Format for TeX - version ${version}";
branch = lib.versions.major version;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
})

View file

@ -1,24 +0,0 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "pgf";
version = "2.00";
src = fetchurl {
url = "mirror://sourceforge/pgf/pgf-${version}.tar.gz";
sha256 = "0j57niag4jb2k0iyrvjsannxljc3vkx0iag7zd35ilhiy4dh6264";
};
dontBuild = true;
installPhase = "
mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix
";
meta = with lib; {
branch = "2";
platforms = platforms.unix;
license = licenses.gpl2;
};
}

View file

@ -4045,7 +4045,7 @@ with pkgs;
# the new one.
pgf1 = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-1.x.nix { };
pgf2 = callPackage ../tools/typesetting/tex/pgf/2.x.nix { };
pgf2 = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-2.x.nix { };
pgf3 = callPackage ../tools/typesetting/tex/pgf/3.x.nix { };