diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-04-15 23:53:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-04-16 00:48:08 +0200 |
commit | 1bb895eabf74a1e571887eb1521915e668a5c28d (patch) | |
tree | 7e8e5210a8c3f26d07ac46992f05740430436fe5 /tests/test.drv | |
parent | f816dba680124860022ba155cf5a6a337739ef11 (diff) | |
download | guix-patches-1bb895eabf74a1e571887eb1521915e668a5c28d.tar guix-patches-1bb895eabf74a1e571887eb1521915e668a5c28d.tar.gz |
services: Service types can now specify a default value for instances.
* gnu/services.scm (&no-default-value): New variable.
(<service-type>)[default-value]: New field.
(<service>): Rename constructor from 'service' to 'make-service'.
(service): New macro.
(%service-with-default-value): New procedure.
(&missing-value-service-error): New error condition.
* tests/services.scm ("services, default value"): New test.
* doc/guix.texi (Service Types and Services): Document 'default-value'.
(Service Reference): Explain default values.
Diffstat (limited to 'tests/test.drv')
0 files changed, 0 insertions, 0 deletions