mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: prosody: Make sure 'id' is available at expansion time.
* gnu/services/messaging.scm (id): Use 'define-syntax-rule' instead of 'define' to make sure 'id' is available at expansion time.
This commit is contained in:
parent
beb1e8067d
commit
5d1ee4d7bc
1 changed files with 3 additions and 2 deletions
|
@ -49,8 +49,9 @@ (define-module (gnu services messaging)
|
|||
;;;
|
||||
;;; Code:
|
||||
|
||||
(define (id ctx . parts)
|
||||
(datum->syntax ctx (apply symbol-append (map syntax->datum parts))))
|
||||
(define-syntax-rule (id ctx parts ...)
|
||||
"Assemble PARTS into a raw (unhygienic) identifier."
|
||||
(datum->syntax ctx (symbol-append (syntax->datum parts) ...)))
|
||||
|
||||
(define-syntax define-maybe
|
||||
(lambda (x)
|
||||
|
|
Loading…
Reference in a new issue