texlive.withPackages: use mkDerivation (finalAttrs: { ... }) instead of buildEnv#312945
texlive.withPackages: use mkDerivation (finalAttrs: { ... }) instead of buildEnv#312945xworld21 wants to merge 6 commits intoNixOS:masterfrom
Conversation
|
Any plan to de-duplicate with the buildEnv script? |
Am I allowed to use the one in |
…bine emulation The special package ordering was useful to guarantee that texlive.combine would not change evaluation during the transition to texlive.withPackages, and it is not needed any more.
f5b84b0 to
bd66702
Compare
I think, you are allowed. If we can get the script no by path but via an attribute, that would be better. |
|
Or, perhaps, converting buildEnv to mkDerivation is an option? |
…overrideable derivation
bd66702 to
e2463f8
Compare
I have done so (hacky, because
It may be too distruptive. A better solution, at the next round of improvements maybe, is to use |
|
@GrahamcOfBorg eval (Checking if the 30s eval increase is repeatable.) |

Description of changes
Refactor
texlive.withPackagesto usemkDerivation (finalAttrs: { ... })instead ofbuildEnv.The main advantage is having
texliveSmall.overrideAttrs { withDocs = true; }, which will allow us to deprecatetexlive.combine, at last. Further benefit is that the build follows traditional phases, so one can add custom behaviours by setting the relevant pre/post-hooks.Cons: I had to vendor a copy of the
buildEnvscript.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.