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.
This commit is contained in:
Will Fancher
2025-11-11 06:43:22 -05:00
parent addd85b5d0
commit ae0b6c5a8b
@@ -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"