nixos/doc: move implementation notes for formats.libconfig to docs

This commit is contained in:
h7x4 2024-06-16 20:40:28 +02:00
parent a891526b22
commit bf2adb82b7
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146
2 changed files with 8 additions and 8 deletions

View File

@ -269,6 +269,14 @@ have a predefined type and string generator already declared under
} }
``` ```
`Implementation notes:`
- Since libconfig does not allow setting names to start with an underscore,
this is used as a prefix for both special types and include directives.
- The difference between 32bit and 64bit values became optional in libconfig
1.5, so we assume 64bit values for all numbers.
`pkgs.formats.json` { } `pkgs.formats.json` { }
: A function taking an empty attribute set (for future extensibility) : A function taking an empty attribute set (for future extensibility)

View File

@ -3,14 +3,6 @@
}: }:
let let
inherit (pkgs) buildPackages callPackage; inherit (pkgs) buildPackages callPackage;
# Implementation notes:
# Libconfig spec: https://hyperrealm.github.io/libconfig/libconfig_manual.html
#
# Since libconfig does not allow setting names to start with an underscore,
# this is used as a prefix for both special types and include directives.
#
# The difference between 32bit and 64bit values became optional in libconfig
# 1.5, so we assume 64bit values for all numbers.
libconfig-generator = buildPackages.rustPlatform.buildRustPackage { libconfig-generator = buildPackages.rustPlatform.buildRustPackage {
name = "libconfig-generator"; name = "libconfig-generator";