Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-05-25 | formats.javaProperties: Don't set `!allowSubstitutes` in `generate` builder | nicoo | 1 | -1/+2 | |
2024-05-25 | formats: Set `preferLocalBuild` in `generate` builders | nicoo | 3 | -0/+7 | |
Otherwise, remote builds are used for trivial format conversions. | |||||
2024-05-20 | treewide: remove unused occurence of fetchurl argument | Sigmanificient | 1 | -2/+1 | |
2024-05-16 | Merge pull request #311299 from thenhnn/filesender-packaging-php-format | Pol Dellaiera | 3 | -0/+115 | |
pkgs/formats: add generator for PHP config files | |||||
2024-05-16 | pkgs: add PHP to formats.nix | nhnn | 3 | -0/+115 | |
2024-04-02 | formats.hocon: fix typo: compatability to compatibility | Philip Taron | 1 | -1/+1 | |
2024-02-12 | pkgs.formats: toINIWithGlobalSection wrapper | benaryorg | 2 | -45/+171 | |
The new format is based on the existing wrapper and generates an INI file with an unnamed global section at the top as is used by *stunnel* for instance. Technically the INI format is a subset of this however testing, type checking, and API guarantees profit from two separate generators. Co-authored-by: tim-tx <tim-tx@users.noreply.github.com> Signed-off-by: benaryorg <binary@benary.org> | |||||
2024-02-12 | pkgs.formats: negative type checking tests | benaryorg | 1 | -38/+118 | |
Tests using `shouldFail` (new) enable testing for whether the type system catches any unintended uses (missing parameters or unavailable data types in the format). It should not be necessary to test for all possible outliers for each format, however format-specific tests (for instance those using a rigid submodule structure) can ensure that common mistakes err out instead of being silently discarded, while also allowing test-driven development of sorts. Signed-off-by: benaryorg <binary@benary.org> | |||||
2024-02-09 | formats.hocon: add backwards compatibility | h7x4 | 5 | -21/+170 | |
2024-02-09 | formats.hocon: add tests | h7x4 | 4 | -0/+137 | |
2024-02-09 | formats.hocon: init | h7x4 | 7 | -0/+481 | |
2023-12-09 | formats.systemd: init INI-style systemd config file format | Minijackson | 1 | -0/+14 | |
2023-10-31 | formats.libconfig: fix unstable store path dependency in test | ckie | 2 | -8/+8 | |
Previously, this test would verify a writeText file with a constant content is at a precise store path, but this is not actually the case and the store path has changed maybe twice since the original "pkgs.formats: Add libconfig format generator" PR was started, the latest time being after it was merged. We now placehold the store path in expected.txt and substitute it just before we run the diff, alleviating the problem. | |||||
2023-10-27 | pkgs-lib.formats: add note about missing `pkgs` quirk | ckie | 1 | -0/+5 | |
2023-10-27 | formats.libconfig: add tests | h7x4 | 4 | -0/+87 | |
Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Signed-off-by: h7x4 <h7x4@nani.wtf> | |||||
2023-10-27 | formats.libconfig: init | h7x4 | 7 | -0/+469 | |
Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Signed-off-by: h7x4 <h7x4@nani.wtf> | |||||
2023-08-27 | pkgs-lib/tests/formats: fix expected output | K900 | 1 | -1/+0 | |
2023-04-04 | formats.pythonVars: init | Minijackson | 1 | -0/+35 | |
2022-07-01 | Merge pull request #178365 from fgaz/lib.formats.keyValue | Aaron Andersen | 2 | -0/+94 | |
lib.formats.keyValue: init | |||||
2022-06-20 | formats.keyValue: add tests | Francesco Gazzetta | 1 | -0/+45 | |
2022-06-19 | pkgs-lib: fix JSON, YAML and TOML cross-compilation | Ben Wolsieffer | 1 | -13/+13 | |
Splicing of nativeBuildInputs doesn't work unless callPackage is used, so the generators were attempting to use host platform tools at build time. | |||||
2022-06-18 | lib.formats.keyValue: init | Francesco Gazzetta | 1 | -0/+49 | |
2022-06-07 | treewide: remove usage of runCommandNoCC aliases | Sandro Jäckel | 1 | -1/+1 | |
2022-05-12 | Merge pull request #104457 from ju1m/public-inbox | Silvan Mosberger | 1 | -0/+11 | |
Update public-inbox to 1.8.0 and add systemd services | |||||
2022-05-12 | nixos/public-inbox: init | Julien Moutinho | 1 | -0/+11 | |
2022-04-25 | Merge pull request #167172 from hercules-ci/javaProperties-type-coercions | Robert Hensing | 3 | -7/+49 | |
`formats.javaProperties`: add type coercions | |||||
2022-04-18 | pkgs-lib.formats: fix tomlkit output | zowoq | 1 | -0/+1 | |
2022-04-10 | tests formats: fix due to tomlkit output change | lassulus | 1 | -3/+0 | |
2022-04-04 | tests.pkgs-lib: Fix for darwin | Robert Hensing | 1 | -1/+2 | |
2022-04-04 | pkgs.formats.javaProperties: Add type coercions | Robert Hensing | 3 | -4/+42 | |
A usability improvement. | |||||
2022-04-04 | tests.pkgs-lib.formats: Allow strings with context in test runner | Robert Hensing | 1 | -2/+5 | |
2022-04-04 | tests.pkgs-lib.formats: Detect when impossible input is fed | Robert Hensing | 1 | -1/+5 | |
2022-04-04 | pkgs.formats.javaProperties: Add implementation note to type | Robert Hensing | 1 | -0/+24 | |
2022-04-01 | formats.javaProperties: Add comment | Robert Hensing | 2 | -4/+11 | |
2022-04-01 | formats.javaProperties: init | Robert Hensing | 6 | -5/+260 | |
2022-02-28 | pkgs-lib: Implement settings format for Elixir | Minijackson | 1 | -0/+207 | |
2021-08-26 | formats: Fix yaml test | Silvan Mosberger | 1 | -2/+2 | |
Faulty test result was introduced in https://github.com/NixOS/nixpkgs/pull/133807 | |||||
2021-08-25 | lib.formats.yaml: use well known YAML format | lucasew | 2 | -21/+34 | |
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> | |||||
2021-08-15 | treewide: runCommandNoCC -> runCommand | Robert Hensing | 2 | -3/+3 | |
This has been synonymous for ~5y. | |||||
2021-06-28 | pkgs-lib: allow paths in TOML, YAML and JSON | Ben Wolsieffer | 2 | -0/+6 | |
Paths get automatically added to the store. The INI generator currently chokes on paths, so it is not supported for now. | |||||
2021-05-04 | formats.ini: Introduce `listToValue` argument (#121613) | Silvan Mosberger | 2 | -2/+40 | |
Allows coercing lists to values. E.g. formats.ini { listToValue = lib.concatMapStringsSep ", " (lib.generators.mkValueStringDefault {}); } | |||||
2020-10-19 | pkgs-lib/tests/formats: improve message on failure | Vladimír Čunát | 1 | -4/+4 | |
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. | |||||
2020-10-19 | pkgs-lib/tests/formats: fix whitespace after PR #100372 | Vladimír Čunát | 1 | -2/+0 | |
Naturally, TOML doesn't define the exact shape of everything. nix build -f pkgs/top-level/release.nix pkgs-lib-tests | |||||
2020-07-29 | pkgs-lib: Add tests for formats | Silvan Mosberger | 2 | -0/+159 | |
2020-07-29 | pkgs-lib: Implement settings formats for JSON, INI, YAML and TOML | Silvan Mosberger | 2 | -1/+114 | |
2020-07-29 | pkgs: Add pkgs-lib structure | Silvan Mosberger | 2 | -0/+12 | |