diff options
author | Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> | 2023-09-03 12:02:34 +0100 |
---|---|---|
committer | Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> | 2023-10-07 18:49:19 +0100 |
commit | 9824aa47a55987365fe6f3f90c6bba5cde6b401b (patch) | |
tree | f8199524fbef13d8b19ceb53e95b14182b8b93e0 /pkgs/misc/sagetex | |
parent | 33c6d50f08d3517143396eb97df31057afab1e1c (diff) |
sagetex: use new tex package structure
Diffstat (limited to 'pkgs/misc/sagetex')
-rw-r--r-- | pkgs/misc/sagetex/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/misc/sagetex/default.nix b/pkgs/misc/sagetex/default.nix index 0f22158e3eb5f..f1db705afdd1b 100644 --- a/pkgs/misc/sagetex/default.nix +++ b/pkgs/misc/sagetex/default.nix @@ -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; }; -}) +} |