1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-07 05:30:38 +02:00
Files
guix/gnu/services
Xinglu Chen b3e99d3399 services: configuration: Allow specifying a custom serializer.
In some cases, rather than globally disabling serialization, it may be more
appropriate to disable or otherwise alter the serialization procedure of a
specific field.  In large module, multiple configurations may also exist that
would need to alter the default serialization procedure, which is named after
the field type.  Being able to specify a per-field serialization procedure
provides more flexibility.

* gnu/services/configuration.scm (define-configuration): Add an optional
pattern variable to allow specifying a custom serialization procedure.
(define-configuration-helper) <field-serializer>: Use it to transform the
syntax.
(empty-serializer): New procedure.
(serialize-package): Alias to ‘empty-serializer’.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-05-08 00:50:39 -04:00
..
2019-05-25 15:58:03 +05:30
2021-04-09 11:59:58 +01:00
2020-09-21 00:31:15 +02:00
2020-03-03 15:00:32 +01:00
2021-02-05 17:19:10 -05:00
2019-11-28 13:30:53 +01:00
2020-02-02 10:42:16 +01:00
2020-12-13 00:35:49 +01:00
2021-01-12 14:40:36 +03:00