build-tex-env: Pass pathsToLink as an argument, not an attr. (#460639)

This commit is contained in:
Will Fancher
2025-11-11 12:11:03 +00:00
committed by GitHub

View File

@@ -45,13 +45,17 @@ lib.fix (
### buildEnv with custom attributes ### buildEnv with custom attributes
buildEnv' = buildEnv' =
args: args:
( (buildEnv (
buildEnv { inherit (args) name paths; } {
inherit (args) name paths;
}
// lib.optionalAttrs (args ? extraOutputsToInstall) { inherit (args) extraOutputsToInstall; } // lib.optionalAttrs (args ? extraOutputsToInstall) { inherit (args) extraOutputsToInstall; }
).overrideAttrs // lib.optionalAttrs (args ? pathsToLink) { inherit (args) pathsToLink; }
)).overrideAttrs
( (
removeAttrs args [ removeAttrs args [
"extraOutputsToInstall" "extraOutputsToInstall"
"pathsToLink"
"name" "name"
"paths" "paths"
"pkgs" "pkgs"