Commit ae0b6c5a authored by Will Fancher's avatar Will Fancher
Browse files

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.
parent addd85b5
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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"