sagetex: init at 3.6
sagetex: init at 3.6 sagetex: refactor Will now build from source sagetex: etc Changed description. Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
This commit is contained in:
parent
41513de1fd
commit
375b48a52d
2 changed files with 42 additions and 0 deletions
40
pkgs/misc/sagetex/default.nix
Normal file
40
pkgs/misc/sagetex/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, texlive
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.6";
|
||||
pname = "sagetex";
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -31676,6 +31676,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 { };
|
||||
|
|
Loading…
Reference in a new issue