mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
nixos/doc: move implementation notes for formats.libconfig to docs
This commit is contained in:
parent
a891526b22
commit
bf2adb82b7
@ -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)
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user