mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
35fa5b5ee6
Formatting. Co-authored-by: Mauricio Collares <244239+collares@users.noreply.github.com>
41 lines
827 B
Nix
41 lines
827 B
Nix
{ 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;
|
|
};
|
|
}
|