diff options
| author | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-27 12:45:41 +0200 |
|---|---|---|
| committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-29 11:13:27 +0200 |
| commit | 57de6a855001eaf849fff1f25859e5a1ddd39ddc (patch) | |
| tree | 54c0e4453ceb2ff5ff6ab8cb36c30f43b040e4e0 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | d77b59b41d038ad9c3878d8ccb2a35f87d178acb (diff) | |
nixos/rust-motd: refactor assertion and TOML generation
* `sort (<)` also works for strings (TIL!), so no need for comparing
length and whether all keys from `cfg.settings` exist in `cfg.order`
(slightly less overhead).
* Don't build another piece of JSON (`orderedSections`), simply use
`cfg.settings`/`cfg.order` with `__structuredAttrs` to ensure a
properly ordered TOML.
This also has the upside of not having to do quote hackery.
* Also, a freeform submodule isn't strictly needed because we don't have
any special options defined, so replacing that with
`attrsOf format.type`.
Co-authored-by: Silvan Mosberger <github@infinisil.com>
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
