From 2020863f242ecdd0c6bf271da24a07f73fe18492 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sat, 11 Mar 2023 20:57:15 +0000 Subject: [PATCH] sagetex: create pkgs fixpoint for texlive using mkDerivation --- pkgs/misc/sagetex/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/sagetex/default.nix b/pkgs/misc/sagetex/default.nix index 510219e51b9c..0f22158e3eb5 100644 --- a/pkgs/misc/sagetex/default.nix +++ b/pkgs/misc/sagetex/default.nix @@ -4,10 +4,9 @@ , texlive }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: rec { pname = "sagetex"; version = "3.6.1"; - passthru.tlType = "run"; src = fetchFromGitHub { owner = "sagemath"; @@ -30,6 +29,11 @@ stdenv.mkDerivation 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"; @@ -37,4 +41,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ alexnortung ]; platforms = platforms.all; }; -} +})