texlive.withPackages: build all outputs (#289756)

This commit is contained in:
Vincenzo Mantova 2024-03-07 00:05:02 +00:00 committed by GitHub
parent f32e786e98
commit b4210fae55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)