pgfplots: 1.5.1 -> 1.18.1
This commit is contained in:
parent
782fca13fe
commit
1a821b629b
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,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;
|
||||
};
|
||||
}
|
@ -4051,7 +4051,7 @@ with pkgs;
|
||||
|
||||
pgf = pgf2;
|
||||
|
||||
pgfplots = callPackage ../tools/typesetting/tex/pgfplots { };
|
||||
pgfplots = callPackage ../tools/typesetting/tex/pgf-tikz/pgfplots.nix { };
|
||||
|
||||
pplatex = callPackage ../tools/typesetting/tex/pplatex { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user