nixpkgs/pkgs/misc/sagetex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
904 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, texlive
}:
stdenv.mkDerivation (finalAttrs: rec {
pname = "sagetex";
2022-10-01 01:37:04 +00:00
version = "3.6.1";
src = fetchFromGitHub {
owner = "sagemath";
repo = "sagetex";
rev = "v${version}";
2022-10-01 01:37:04 +00:00
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/"
'';
passthru = {
tlType = "run";
pkgs = [ finalAttrs.finalPackage ];
};
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;
};
})