summary refs log tree commit diff
path: root/pkgs/pkgs-lib
Commit message (Collapse)AuthorAge
* pkgs-lib: allow paths in TOML, YAML and JSONBen Wolsieffer2021-06-28
| | | | | Paths get automatically added to the store. The INI generator currently chokes on paths, so it is not supported for now.
* formats.ini: Introduce `listToValue` argument (#121613)Silvan Mosberger2021-05-04
| | | | | Allows coercing lists to values. E.g. formats.ini { listToValue = lib.concatMapStringsSep ", " (lib.generators.mkValueStringDefault {}); }
* pkgs-lib/tests/formats: improve message on failureVladimír Čunát2020-10-19
| | | | | | | | | | Foremost, the message was discarding double quotes on one side of the diff, which was super-confusing to me, as I thought that the format convertor broke that when in fact only whitespace was changed. I thought I'd cat the files, but then... switching to `diff -u` seemed self-sufficient. It felt sufficiently non-controversial to push directly, but certainly feel free to improve further.
* pkgs-lib/tests/formats: fix whitespace after PR #100372Vladimír Čunát2020-10-19
| | | | | Naturally, TOML doesn't define the exact shape of everything. nix build -f pkgs/top-level/release.nix pkgs-lib-tests
* pkgs-lib: Add tests for formatsSilvan Mosberger2020-07-29
|
* pkgs-lib: Implement settings formats for JSON, INI, YAML and TOMLSilvan Mosberger2020-07-29
|
* pkgs: Add pkgs-lib structureSilvan Mosberger2020-07-29