sagetex: use new tex package structure

This commit is contained in:
Vincenzo Mantova 2023-09-03 12:02:34 +01:00
parent 33c6d50f08
commit 9824aa47a5

View File

@ -1,10 +1,11 @@
{ lib
, stdenv
, fetchFromGitHub
, writeShellScript
, texlive
}:
stdenv.mkDerivation (finalAttrs: rec {
stdenv.mkDerivation rec {
pname = "sagetex";
version = "3.6.1";
@ -15,8 +16,14 @@ stdenv.mkDerivation (finalAttrs: rec {
sha256 = "sha256-OfhbXHbGI+DaDHqZCOGiSHJPHjGuT7ZqSEjKweloW38=";
};
buildInputs = [
outputs = [ "tex" ];
nativeBuildInputs = [
texlive.combined.scheme-basic
# multiple-outputs.sh fails if $out is not defined
(writeShellScript "force-tex-output.sh" ''
out="''${tex-}"
'')
];
buildPhase = ''
@ -29,11 +36,6 @@ stdenv.mkDerivation (finalAttrs: rec {
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";
@ -41,4 +43,4 @@ stdenv.mkDerivation (finalAttrs: rec {
maintainers = with maintainers; [ alexnortung ];
platforms = platforms.all;
};
})
}