From ae0b6c5a8b97d0bf01ac8fd335c993aa545e221e Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Tue, 11 Nov 2025 06:23:26 -0500 Subject: [PATCH] build-tex-env: Pass `pathsToLink` as an argument, not an attr. Resolves an issue that began with https://github.com/NixOS/nixpkgs/pull/451871 because `pathsToLink` is no longer the operative attr in the derivation. Passing it as an argument properly translates it to the `pathsToLinkJSON` attr that it needs to be. --- pkgs/tools/typesetting/tex/texlive/build-tex-env.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix b/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix index d179ef835a92..154ad98cab05 100644 --- a/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix +++ b/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix @@ -45,13 +45,17 @@ lib.fix ( ### buildEnv with custom attributes buildEnv' = args: - ( - buildEnv { inherit (args) name paths; } + (buildEnv ( + { + inherit (args) name paths; + } // lib.optionalAttrs (args ? extraOutputsToInstall) { inherit (args) extraOutputsToInstall; } - ).overrideAttrs + // lib.optionalAttrs (args ? pathsToLink) { inherit (args) pathsToLink; } + )).overrideAttrs ( removeAttrs args [ "extraOutputsToInstall" + "pathsToLink" "name" "paths" "pkgs"