me
/
guix
Archived
1
0
Fork 0

guix: Add define-deprecated/public-alias.

* guix/deprecation.scm (define-deprecated/public-alias): New variable.
master
Liliana Marie Prikler 2022-03-29 21:16:35 +02:00
parent 1be7f43756
commit 9ab158a457
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,7 @@
define-deprecated/public
define-deprecated/alias
define-deprecated/public-alias
warn-about-old-daemon
warn-about-deprecation))
@ -124,3 +125,10 @@ This will write a deprecation warning to GUIX-WARNING-PORT."
(id
(identifier? #'id)
#'replacement)))))
(define-syntax-rule (define-deprecated/public-alias deprecated replacement)
"Like define-deprecated/alias, but exporting DEPRECATED.
It is assumed, that REPLACEMENT is already public."
(begin
(define-deprecated/alias deprecated replacement)
(export deprecated)))