mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
Remove top level with lib;
in docs (#293829)
This commit is contained in:
parent
ff352fc505
commit
86ae7a6243
4 changed files with 12 additions and 9 deletions
|
@ -6,8 +6,9 @@ All generators follow a similar call interface: `generatorName configFunctions d
|
|||
Generators can be fine-tuned to produce exactly the file format required by your application/service. One example is an INI-file format which uses `: ` as separator, the strings `"yes"`/`"no"` as boolean values and requires all string values to be quoted:
|
||||
|
||||
```nix
|
||||
with lib;
|
||||
let
|
||||
inherit (lib) generators isString;
|
||||
|
||||
customToINI = generators.toINI {
|
||||
# specifies how to format a key/value pair
|
||||
mkKeyValue = generators.mkKeyValueDefault {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue