Unverified Commit b4210fae authored by Vincenzo Mantova's avatar Vincenzo Mantova Committed by GitHub
Browse files

texlive.withPackages: build all outputs (#289756)

parent f32e786e
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -188,7 +188,6 @@ let

  passthru = lib.optionalAttrs (! __combine) (splitOutputs // {
    all = builtins.attrValues splitOutputs;
    outputs = [ "out" ] ++ pkgList.nonEnvOutputs;
  }) // {
    # This is set primarily to help find-tarballs.nix to do its job
    requiredTeXPackages = builtins.filter lib.isDerivation (pkgList.bin ++ pkgList.nonbin
@@ -440,14 +439,11 @@ let
  ;
}).overrideAttrs (prev:
  { allowSubstitutes = true; }
  # the outputsToInstall must be built by the main derivation for nix-profile-install to work
  // lib.optionalAttrs (! __combine) ({
    outputs = pkgList.outputsToInstall;
    outputs = [ "out" ] ++ pkgList.nonEnvOutputs;
    meta = prev.meta // { inherit (pkgList) outputsToInstall; };
  } // (lib.mapAttrs'
    (out: drv: { name = "otherOutput_" + out; value = drv; })
    (lib.getAttrs (builtins.tail pkgList.outputsToInstall) splitOutputs)
    )
  } // builtins.listToAttrs
    (map (out: { name = "otherOutput_" + out; value = splitOutputs.${out}; }) pkgList.nonEnvOutputs)
  )
);
in out)