diff options
Diffstat (limited to 'pkgs/misc/sagetex/default.nix')
-rw-r--r-- | pkgs/misc/sagetex/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/misc/sagetex/default.nix b/pkgs/misc/sagetex/default.nix new file mode 100644 index 0000000000000..a30f037d9c471 --- /dev/null +++ b/pkgs/misc/sagetex/default.nix @@ -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; + }; +} |