I wanted to flag that texlive
now implements .withPackages
(as soon as the PR below hits master). It is temporarily undocumented, but it works like for other languages
texlive.withPackages (with ps; [ scheme-small collection-pstricks ])
and can be called on an existing combined scheme to add packages. It’s also easier to create non-texlive packages (just make them multi-output with special outputs names tex
, texdoc
…).
There is an experimental interface to add the docs too:
texlive.combined.scheme-small.__overrideTeXConfig { withDocs = true; }
It would be great if people using texlive could play with this and report any bugs, issues, feedback so that we ship 23.11 in a good state and possibly with a stable overrideTeXConfig
.
NixOS:master
← xworld21:texlive-buildenv-minimal
opened 06:23PM - 22 Aug 23 UTC
## Description of changes
Full implementation of the multi-output packages for … TeX Live and new `overrideTeXConfig`, `withPackages` functions to create combined environment. ~~, with a compatibility layer set up to help creating a scope later on (basically I copied @apfelkuchen6's `compatFixups`), and the most minimal implementation of `texlive.__buildEnv`, focussed on preserving `texlive.combine` down to the build output. The alias `texlive.__withPackages` is also in place.~~
This is now fixed to reproduce `texlive.combine` exactly, so that we have no rebuilds at this stage. What's left is to create a scope, and we'll be able to talk user visible changes.
## Things done
- Built on platform(s)
- [ ] x86_64-linux
- [ ] aarch64-linux
- [X] x86_64-darwin
- [ ] aarch64-darwin
- [ ] For non-Linux: Is `sandbox = true` set in `nix.conf`? (See [Nix manual](https://nixos.org/manual/nix/stable/command-ref/conf-file.html))
- [ ] Tested, as applicable:
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://nixos.org/manual/nixpkgs/unstable/#sec-package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://nixos.org/manual/nixpkgs/unstable/#ssec-nixos-tests-linking) to the relevant packages
- [x] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [23.11 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2311.section.md) (or backporting [23.05 Release notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2305.section.md))
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module
- [X] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
5 Likes