guix/doc
Bruno Victal 6f48efa9b8
services: configuration: Add user-defined sanitizer support.
This changes the 'custom-serializer' field into a generic
'extra-args' field that can be extended to support new literals.
Within extra-args, the literals 'sanitizer' and 'serializer' allow
for user-defined sanitization and serialization procedures respectively.
The 'empty-serializer' was also added as a literal to be used as before.

To prevent confusion between the new “explicit” style of specifying
a sanitizer, and the old “implicit” style, the latter has been
deprecated, and a warning is issued if it is encountered.

* gnu/services/configuration.scm (define-configuration-helper):
Rename 'custom-serializer' to 'extra-args'.  Add support for literals
'sanitizer', 'serializer' and 'empty-serializer'.  Rename procedure
'field-sanitizer' to 'default-field-sanitizer' to avoid syntax clash.
Only define default field sanitizers if user-defined ones are absent.
(normalize-extra-args): New variable.
(<configuration-field>)[sanitizer]: New field.
* doc/guix.texi (Complex Configurations): Document the newly added
literals.
* tests/services/configuration.scm: Add tests for the new literals.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-02 12:31:51 +02:00
..
images
build.scm
contributing.texi doc: Mention Python 2 packages should not be added anymore. 2023-03-23 22:15:27 -04:00
environment-gdb.scm
fdl-1.3.texi
guix-cookbook.texi doc: cookbook: Add "Installing Guix on a Cluster" chapter. 2023-01-09 17:40:53 +01:00
guix.texi services: configuration: Add user-defined sanitizer support. 2023-04-02 12:31:51 +02:00
he-config-bare-bones.scm
htmlxref.cnf doc: Update URLs for the manual and cookbook translations. 2022-12-18 16:01:32 +01:00
local.mk
package-hello.json
package-hello.scm