Merge pull request #198508 from atorres1985-contrib/reorder-tex
tikz-pgf updates
This commit is contained in:
commit
7bd44c4c97
12 changed files with 253 additions and 114 deletions
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-1.x.nix
Normal file
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-1.x.nix
Normal 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;
|
||||
};
|
||||
})
|
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-2.x.nix
Normal file
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-2.x.nix
Normal 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;
|
||||
};
|
||||
})
|
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-3.x.nix
Normal file
37
pkgs/tools/typesetting/tex/pgf-tikz/pgf-3.x.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pgf";
|
||||
version = "3.1.9a";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgf-tikz";
|
||||
repo = "pgf";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-7FBaDEaCpiiLMcHWGv5AnUNc5AFqtm5o/R9bJePIomk=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd doc source tex/{context,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;
|
||||
};
|
||||
})
|
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-pie.nix
Normal file
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-pie.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pgf-pie";
|
||||
version = "0.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgf-tikz";
|
||||
repo = "pgf-pie";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-tAUv35AMgJW5JI2KIXxxXFihqdB7qbMmNpAYhpDbAxs=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd doc tex/latex $out/share/texmf-nix/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pgf-tikz/pgf-pie";
|
||||
description = "Some LaTeX macros for pie charts using the PGF/TikZ package";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-umlcd.nix
Normal file
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-umlcd.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pgf-umlcd";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgf-tikz";
|
||||
repo = "pgf-umlcd";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-92bfBcQfnalYoVxlVRjbRXhWt+CbS8PtiMmFIqbgo7A=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd doc tex/latex $out/share/texmf-nix/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pgf-tikz/pgf-umlcd";
|
||||
description = "Some LaTeX macros for UML Class Diagrams";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-umlsd.nix
Normal file
33
pkgs/tools/typesetting/tex/pgf-tikz/pgf-umlsd.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pgf-umlcd";
|
||||
version = "unstable-2020-05-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgf-tikz";
|
||||
repo = "pgf-umlsd";
|
||||
rev = "8766cc18596dbfa66202ceca01c62cab1c3ed6a2";
|
||||
hash = "sha256-gSBO7uDPMer9XyHfs0rr+2lricN5Nb4cOlShCsk0cPc=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd doc tex/latex $out/share/texmf-nix/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pgf-tikz/pgf-umlsd";
|
||||
description = "Some LaTeX macros for UML Sequence Diagrams";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
33
pkgs/tools/typesetting/tex/pgf-tikz/pgfplots.nix
Normal file
33
pkgs/tools/typesetting/tex/pgf-tikz/pgfplots.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pgfplots";
|
||||
version = "1.18.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgf-tikz";
|
||||
repo = "pgfplots";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-cTfOMasBptm0lydKeNHPnjdEyFjEb88awYPn8S2m73c=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd doc tex/{context,generic,latex,plain} $out/share/texmf-nix/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://pgfplots.sourceforge.net";
|
||||
description = "TeX package to draw plots directly in TeX in two and three dimensions";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pgf";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/pgf/pgf/version%20${version}/pgf_${version}.tds.zip";
|
||||
sha256 = "0kj769hyp4z2zmdv3f8xv443wcfqn5nkkbzxzqgfxjizlz81aav7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
# Multiple files problem
|
||||
unpackPhase = ''
|
||||
mkdir pgf
|
||||
cd pgf
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
|
||||
meta = with lib; {
|
||||
branch = "3";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
{lib, stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pgfplots";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pgfplots/pgfplots_${version}.tds.zip";
|
||||
sha256 = "1xajrmq35i0qlsfwydy5zzg6f1jg88hqqh5b3xsmglzrarnllbdi";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = "unzip $src";
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
|
||||
meta = with lib; {
|
||||
description = "TeX package to draw plots directly in TeX in two and three dimensions";
|
||||
homepage = "http://pgfplots.sourceforge.net";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
}
|
|
@ -4042,15 +4042,21 @@ 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 { };
|
||||
pgf2 = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-2.x.nix { };
|
||||
|
||||
pgf3 = callPackage ../tools/typesetting/tex/pgf/3.x.nix { };
|
||||
pgf3 = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-3.x.nix { };
|
||||
|
||||
pgf = pgf2;
|
||||
|
||||
pgfplots = callPackage ../tools/typesetting/tex/pgfplots { };
|
||||
pgf-pie = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-pie.nix { };
|
||||
|
||||
pgf-umlcd = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-umlcd.nix { };
|
||||
|
||||
pgf-umlsd = callPackage ../tools/typesetting/tex/pgf-tikz/pgf-umlsd.nix { };
|
||||
|
||||
pgfplots = callPackage ../tools/typesetting/tex/pgf-tikz/pgfplots.nix { };
|
||||
|
||||
pplatex = callPackage ../tools/typesetting/tex/pplatex { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue