guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/06: doc: Avoid 'match' on the <udev-configuration> record.


From: guix-commits
Subject: 02/06: doc: Avoid 'match' on the <udev-configuration> record.
Date: Tue, 20 Dec 2022 11:13:25 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 3f6c5c6f781bdf4cf5f15272642d0f3aba01aa50
Author: Ludovic Court├Ęs <ludo@gnu.org>
AuthorDate: Tue Dec 20 10:33:03 2022 +0100

    doc: Avoid 'match' on the <udev-configuration> record.
    
    Fixes <https://issues.guix.gnu.org/59907>.
    Reported by MANCINI Raffael <Raffael.MANCINI@mnhn.lu>.
    
    * doc/guix.texi (Service Types and Services): Change
    'udev-configuration' example to avoid 'match'.
---
 doc/guix.texi | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index c031c8d880..6478deba1d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -39719,11 +39719,10 @@ The service type for an @emph{extensible} service 
looks like this:
 
                 (compose concatenate)       ;concatenate the list of rules
                 (extend (lambda (config rules)
-                          (match config
-                            (($ <udev-configuration> udev initial-rules)
-                             (udev-configuration
-                              (udev udev)   ;the udev package to use
-                              (rules (append initial-rules rules)))))))))
+                          (udev-configuration
+                           (inherit config)
+                           (rules (append (udev-configuration-rules config)
+                                          rules)))))))
 @end lisp
 
 This is the service type for the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]