summaryrefslogtreecommitdiff
path: root/pkgs/pkgs-lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #178365 from fgaz/lib.formats.keyValue•••lib.formats.keyValue: initAaron Andersen2022-07-012-0/+94
|\
| * formats.keyValue: add testsFrancesco Gazzetta2022-06-201-0/+45
| * lib.formats.keyValue: initFrancesco Gazzetta2022-06-181-0/+49
* | pkgs-lib: fix JSON, YAML and TOML cross-compilation•••Splicing of nativeBuildInputs doesn't work unless callPackage is used, so the generators were attempting to use host platform tools at build time. Ben Wolsieffer2022-06-191-13/+13
|/
* treewide: remove usage of runCommandNoCC aliasesSandro Jäckel2022-06-071-1/+1
* Merge pull request #104457 from ju1m/public-inbox•••Update public-inbox to 1.8.0 and add systemd servicesSilvan Mosberger2022-05-121-0/+11
|\
| * nixos/public-inbox: initJulien Moutinho2022-05-121-0/+11
* | Merge pull request #167172 from hercules-ci/javaProperties-type-coercions•••`formats.javaProperties`: add type coercionsRobert Hensing2022-04-253-7/+49
|\ \
| * | tests.pkgs-lib: Fix for darwinRobert Hensing2022-04-041-1/+2
| * | pkgs.formats.javaProperties: Add type coercions•••A usability improvement. Robert Hensing2022-04-043-4/+42
| * | tests.pkgs-lib.formats: Allow strings with context in test runnerRobert Hensing2022-04-041-2/+5
* | | pkgs-lib.formats: fix tomlkit outputzowoq2022-04-181-0/+1
* | | tests formats: fix due to tomlkit output changelassulus2022-04-101-3/+0
|/ /
* | tests.pkgs-lib.formats: Detect when impossible input is fedRobert Hensing2022-04-041-1/+5
* | pkgs.formats.javaProperties: Add implementation note to typeRobert Hensing2022-04-041-0/+24
* | formats.javaProperties: Add commentRobert Hensing2022-04-012-4/+11
* | formats.javaProperties: initRobert Hensing2022-04-016-5/+260
* | pkgs-lib: Implement settings format for ElixirMinijackson2022-02-281-0/+207
|/
* formats: Fix yaml test•••Faulty test result was introduced in https://github.com/NixOS/nixpkgs/pull/133807 Silvan Mosberger2021-08-261-2/+2
* lib.formats.yaml: use well known YAML format•••The way `(lib.formats.yaml {}).generate` generates YAML is compliant because on YAML 1.2 spec JSON is a subset of YAML but it bugs people's minds and can lead to problems with software that is not compatible with YAML 1.2. This commit also changes the test of the generation function. Data validation/typing remains the same. See #133802. Signed-off-by: lucasew <lucas59356@gmail.com> lucasew2021-08-252-21/+34
* treewide: runCommandNoCC -> runCommand•••This has been synonymous for ~5y. Robert Hensing2021-08-152-3/+3
* pkgs-lib: allow paths in TOML, YAML and JSON•••Paths get automatically added to the store. The INI generator currently chokes on paths, so it is not supported for now. Ben Wolsieffer2021-06-282-0/+6
* formats.ini: Introduce `listToValue` argument (#121613)•••Allows coercing lists to values. E.g. formats.ini { listToValue = lib.concatMapStringsSep ", " (lib.generators.mkValueStringDefault {}); }Silvan Mosberger2021-05-042-2/+40
* pkgs-lib/tests/formats: improve message on failure•••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. Vladimír Čunát2020-10-191-4/+4
* pkgs-lib/tests/formats: fix whitespace after PR #100372•••Naturally, TOML doesn't define the exact shape of everything. nix build -f pkgs/top-level/release.nix pkgs-lib-tests Vladimír Čunát2020-10-191-2/+0
* pkgs-lib: Add tests for formatsSilvan Mosberger2020-07-292-0/+159
* pkgs-lib: Implement settings formats for JSON, INI, YAML and TOMLSilvan Mosberger2020-07-292-1/+114
* pkgs: Add pkgs-lib structureSilvan Mosberger2020-07-292-0/+12