Merge pull request #151876 from Alexnortung/sagetex

sagetex: init at 3.6
This commit is contained in:
legendofmiracles 2022-01-25 07:28:15 -06:00 committed by GitHub
commit 6493bbd4ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, texlive
}:
stdenv.mkDerivation rec {
pname = "sagetex";
version = "3.6";
passthru.tlType = "run";
src = fetchFromGitHub {
owner = "sagemath";
repo = "sagetex";
rev = "v${version}";
sha256 = "8iHcJbaY/dh0vmvYyd6zj1ZbuJRaJGb6bUBK1v4gXWU=";
};
buildInputs = [
texlive.combined.scheme-basic
];
buildPhase = ''
make sagetex.sty
'';
installPhase = ''
path="$out/tex/latex/sagetex"
mkdir -p "$path"
cp -va *.sty *.cfg *.def "$path/"
'';
meta = with lib; {
description = "Embed code, results of computations, and plots from Sage into LaTeX documents";
homepage = "https://github.com/sagemath/sagetex";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ alexnortung ];
platforms = platforms.all;
};
}

View file

@ -32041,6 +32041,8 @@ with pkgs;
sage = callPackage ../applications/science/math/sage { };
sageWithDoc = sage.override { withDoc = true; };
sagetex = callPackage ../misc/sagetex { };
subread = callPackage ../applications/science/biology/subread { };
suitesparse_4_2 = callPackage ../development/libraries/science/math/suitesparse/4.2.nix { };