pgf-1.x: use github source

This commit is contained in:
AndersonTorres 2022-10-29 15:21:57 -03:00
parent 16448f9e76
commit c482175b03
3 changed files with 38 additions and 25 deletions

View File

@ -0,0 +1,37 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "pgf";
version = "1.18";
src = fetchFromGitHub {
owner = "pgf-tikz";
repo = "pgf";
rev = "refs/tags/version-${lib.replaceChars ["."] ["-"] finalAttrs.version}";
hash = "sha256-WZ/191iEDd5VK1bnV9JZx2BZfACUeAUhAqrlyx+ZvA4=";
};
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 ${finalAttrs.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 = "1.18";
src = fetchurl {
url = "mirror://sourceforge/pgf/pgf-${version}.tar.gz";
sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv";
};
dontBuild = true;
installPhase = "
mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix
";
meta = with lib; {
branch = "1";
platforms = platforms.unix;
license = licenses.gpl2;
};
}

View File

@ -4043,7 +4043,7 @@ with pkgs;
# Keep the old PGF since some documents don't render properly with
# the new one.
pgf1 = callPackage ../tools/typesetting/tex/pgf/1.x.nix { };
pgf1 = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-1.x.nix { };
pgf2 = callPackage ../tools/typesetting/tex/pgf/2.x.nix { };