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' =
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"