mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
services: configuration: Add '%location'.
* gnu/services/configuration.scm (define-configuration): Add '%location'.
This commit is contained in:
parent
41ce92501b
commit
d132d9f96b
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ (define-module (gnu services configuration)
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module ((guix utils) #:select (source-properties->location))
|
||||
#:autoload (texinfo) (texi-fragment->stexi)
|
||||
#:autoload (texinfo serialize) (stexi->texi)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -129,6 +130,10 @@ (define-record-type* #,(id #'stem #'< #'stem #'>)
|
|||
#,(id #'stem #'% #'stem)
|
||||
#,(id #'stem #'make- #'stem)
|
||||
#,(id #'stem #'stem #'?)
|
||||
(%location #,(id #'stem #'-location)
|
||||
(default (and=> (current-source-location)
|
||||
source-properties->location))
|
||||
(innate))
|
||||
(field field-getter (default def))
|
||||
...)
|
||||
(define #,(id #'stem #'stem #'-fields)
|
||||
|
|
Loading…
Reference in a new issue