summaryrefslogtreecommitdiff
path: root/pkgs/pkgs-lib/formats.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* formats: Set `preferLocalBuild` in `generate` builders•••Otherwise, remote builds are used for trivial format conversions. nicoo2024-05-251-0/+5
* pkgs: add PHP to formats.nixnhnn2024-05-161-0/+2
* pkgs.formats: toINIWithGlobalSection wrapper•••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> benaryorg2024-02-121-45/+76
* formats.hocon: inith7x42024-02-091-0/+2
* formats.systemd: init INI-style systemd config file formatMinijackson2023-12-091-0/+14
* pkgs-lib.formats: add note about missing `pkgs` quirkckie2023-10-271-0/+5
* formats.libconfig: init•••Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Signed-off-by: h7x4 <h7x4@nani.wtf> h7x42023-10-271-0/+2
* formats.pythonVars: initMinijackson2023-04-041-0/+35
* Merge pull request #178365 from fgaz/lib.formats.keyValue•••lib.formats.keyValue: initAaron Andersen2022-07-011-0/+49
|\
| * 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
* | formats.javaProperties: initRobert Hensing2022-04-011-0/+3
* | pkgs-lib: Implement settings format for ElixirMinijackson2022-02-281-0/+207
|/
* 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-251-6/+23
* treewide: runCommandNoCC -> runCommand•••This has been synonymous for ~5y. Robert Hensing2021-08-151-2/+2
* 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-281-0/+2
* formats.ini: Introduce `listToValue` argument (#121613)•••Allows coercing lists to values. E.g. formats.ini { listToValue = lib.concatMapStringsSep ", " (lib.generators.mkValueStringDefault {}); }Silvan Mosberger2021-05-041-2/+24
* pkgs-lib: Implement settings formats for JSON, INI, YAML and TOMLSilvan Mosberger2020-07-291-0/+109