2021-12-23 09:43:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, texlive
|
|
|
|
}:
|
|
|
|
|
2023-03-11 20:57:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: rec {
|
2022-01-25 13:22:25 +00:00
|
|
|
pname = "sagetex";
|
2022-10-01 01:37:04 +00:00
|
|
|
version = "3.6.1";
|
2021-12-23 09:43:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sagemath";
|
|
|
|
repo = "sagetex";
|
|
|
|
rev = "v${version}";
|
2022-10-01 01:37:04 +00:00
|
|
|
sha256 = "sha256-OfhbXHbGI+DaDHqZCOGiSHJPHjGuT7ZqSEjKweloW38=";
|
2021-12-23 09:43:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
texlive.combined.scheme-basic
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make sagetex.sty
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
path="$out/tex/latex/sagetex"
|
|
|
|
mkdir -p "$path"
|
|
|
|
cp -va *.sty *.cfg *.def "$path/"
|
|
|
|
'';
|
|
|
|
|
2023-03-11 20:57:15 +00:00
|
|
|
passthru = {
|
|
|
|
tlType = "run";
|
|
|
|
pkgs = [ finalAttrs.finalPackage ];
|
|
|
|
};
|
|
|
|
|
2021-12-23 09:43:49 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-03-11 20:57:15 +00:00
|
|
|
})
|