1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/misc/sagetex/default.nix
2022-10-01 01:37:04 +00:00

41 lines
836 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, texlive
}:
stdenv.mkDerivation rec {
pname = "sagetex";
version = "3.6.1";
passthru.tlType = "run";
src = fetchFromGitHub {
owner = "sagemath";
repo = "sagetex";
rev = "v${version}";
sha256 = "sha256-OfhbXHbGI+DaDHqZCOGiSHJPHjGuT7ZqSEjKweloW38=";
};
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;
};
}